currentUser property

User? get currentUser

Gets the currently logged in User. If none exists, null is returned.

Implementation

User? get currentUser {
  final userHandle = _handle.currentUser;
  if (userHandle == null) {
    return null;
  }
  return UserInternal.create(userHandle, this);
}