currentUser property
User?
get
currentUser
Returns the current User if they are currently signed-in, or null
if
not.
This getter only provides a snapshot of user state. Applications that need to react to changes in user state should instead use authStateChanges, idTokenChanges or userChanges to subscribe to updates.
Implementation
User? get currentUser {
if (_delegate.currentUser != null) {
return User._(_delegate.currentUser!);
}
return null;
}