AuthenticationState.authenticated constructor

const AuthenticationState.authenticated({
  1. 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);