AuthStateModel class
Constructors
- AuthStateModel.new({AuthState state = AuthState.idle, UserModel? user, String? errorMessage})
- AuthStateModel.empty()
-
factory
- AuthStateModel.fromJson(String source)
-
factory
-
AuthStateModel.fromMap(Map<
String, dynamic> map) -
factory
Properties
- errorMessage → String?
-
final
- hasError → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isAuthenticated → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → AuthState
-
final
- user → UserModel?
-
final
Methods
-
copyWith(
{AuthState? state, UserModel? user, String? errorMessage}) → AuthStateModel -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant AuthStateModel other) → bool -
The equality operator.
override