currentUser property

User? currentUser

Returns the current logged in user, if any;

Use currentSession to determine whether the user has an active session, because currentUser can be non-null without an active session, such as when the user signed up using email and password but has not confirmed their email address.

Implementation

User? get currentUser => _currentUser;