AuthenticationState class Null safety

State emitted by AuthenticationBloc.

Contains the current User and AuthenticationStatus. Three named constructors are exposed: unknown, unauthenticated and authenticated; to make it easier to work with.

Constructors

AuthenticationState.authenticated(User user)
The state which indicates that the user is current authenticated.
const
AuthenticationState.unauthenticated()
The state which indicates that the user is current not authenticated.
const
AuthenticationState.unknown()
The default state which indicates that the bloc does not yet know whether the current user is authenticated or not.
const

Properties

hashCode → int
The hash code for this object.
read-only, inherited
props → List<Object>
The list of properties that will be used to determine whether two instances are equal.
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
status AuthenticationStatus
The current authentication status.
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
read-only, inherited
user User
The current authenticated user.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited