AuthenticationState constructor

AuthenticationState({
  1. @Default(AuthenticationStatus.unauthenticated) AuthenticationStatus status,
  2. ClientUserEntity? user,
  3. @Default(<ProfileMenuItem>[]) List<ProfileMenuItem> commonProfileMenuItems,
  4. @Default(<ProfileMenuItem>[]) List<ProfileMenuItem> authenticatedProfileMenuItems,
})

Implementation

factory AuthenticationState({
  @Default(AuthenticationStatus.unauthenticated) AuthenticationStatus status,
  ClientUserEntity? user,
  @Default(<ProfileMenuItem>[]) List<ProfileMenuItem> commonProfileMenuItems,
  @Default(<ProfileMenuItem>[])
  List<ProfileMenuItem> authenticatedProfileMenuItems,
}) = _AuthenticationState;