authStateChanges method
Notifies about changes to the user's sign-in state (such as sign-in or sign-out).
Implementation
@override
Stream<UserPlatform?> authStateChanges() async* {
await _initialized.future;
yield currentUser;
if (_authStateChangesListeners[app.name] == null) {
_createStreamListener(app.name, StateListener.authStateChange);
}
yield* _authStateChangesListeners[app.name]!.stream;
}