When I press the "Logout" in app, the currentUser become null but don't really logout app, I'm using ScopedModel, if I print(model.isLoggedIn()) returns true, it means that exist some user in app, but the user is null.
When I press to signOut, I receive a message on output:
D/FirebaseAuth( 5252): Notifying id token listeners about a sign-out event.
D/FirebaseAuth( 5252): Notifying auth state listeners about a sign-out event.
D/FirebaseAuth( 5252): Notifying id token listeners about a sign-out event.
D/FirebaseAuth( 5252): Notifying auth state listeners about a sign-out event.
I/flutter ( 5252): true ( print in model.isLoggedIn() )
Follows signOut code
void signOut() async{
print(isLoggedIn());
await FirebaseAuth.instance.signOut();
userData = Map();
notifyListeners();
print(isLoggedIn());
}
bool isLoggedIn(){ return FirebaseUser != null; }
this is the complete code about UserModel: https://github.com/willsgobi/coleirapet/blob/master/lib/models/loginmodel.dart