currentUser property

  1. @override
UserPlatform? currentUser

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 = delegate.currentUser;

  if (webCurrentUser == null) {
    return null;
  }

  return UserWeb(
    this,
    MultiFactorWeb(this, multi_factor.multiFactor(delegate.currentUser!)),
    delegate.currentUser!,
    _webAuth,
  );
}
void currentUser=(UserPlatform? userPlatform)
inherited

Sets the current user for the instance.

Implementation

set currentUser(UserPlatform? userPlatform) {
  throw UnimplementedError('set.currentUser is not implemented');
}