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 {
auth_interop.User? webCurrentUser = _webAuth!.currentUser;
if (webCurrentUser == null) {
return null;
}
return UserWeb(this, _webAuth!.currentUser!);
}
void
currentUser=(UserPlatform? userPlatform)
inherited
Sets the current user for the instance.
Implementation
set currentUser(UserPlatform? userPlatform) {
throw UnimplementedError('set.currentUser is not implemented');
}