I am trying to check if the _isLoggedIn variable has been set to True or False or Empty. The Boolean variable will be set after the user is logged in. Assuming the user is YET to login and not records of isLoggedIn has been set or stored. What will be the return value of this method below?
Future<bool> userIsLoggedIn() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
bool _isLoggedIn = prefs.getBool('isLoggedIn') as bool;
return _isLoggedIn;
}