AuthenticationState.authenticated constructor
- required UserModel? user,
The state emitted when a valid session exists.
user carries the resolved UserModel and may be UserModel.empty if
the user data could not be fetched but a valid token was present.
Implementation
const AuthenticationState.authenticated({required UserModel? user}) : this._(status: AuthenticationStatus.authenticated, user: user);