currentUser property
Returns the current User
if they are currently signed-in, or null
if
not.
You should not use this getter to determine the users current state, instead use authStateChanges, idTokenChanges or userChanges to subscribe to updates.
Implementation
@override
UserPlatform? get currentUser {
final dartCurrentUser = _delegate!.currentUser;
if (dartCurrentUser == null) {
return null;
}
return User(this, _delegate!.currentUser!);
}
set
currentUser
(UserPlatform? userPlatform)
inherited
Sets the current user for the instance.
Implementation
set currentUser(UserPlatform? userPlatform) {
throw UnimplementedError('set.currentUser is not implemented');
}