userChanges static method
Returns the current User
Changes 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 Stream<User?> userChanges() => _auth.userChanges();