currentUser property
User?
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
static User? get currentUser => _auth.currentUser;