AuthResponse<T extends Auth<AuthKeys>> class

Constructors

AuthResponse.authenticated(T? data, {dynamic msg, AuthProviders? provider, AuthType? type})
const
AuthResponse.failure(dynamic msg, {AuthProviders? provider, AuthType? type})
const
AuthResponse.guest(T? data, {dynamic msg, AuthProviders? provider, AuthType? type})
const
AuthResponse.initial({dynamic msg, AuthProviders? provider, AuthType? type})
const
AuthResponse.loading([AuthProviders? provider, AuthType? type])
const
AuthResponse.message(dynamic msg, {AuthProviders? provider, AuthType? type})
const
AuthResponse.rollback(T? data, {dynamic msg, AuthProviders? provider, AuthType? type})
const
AuthResponse.unauthenticated({dynamic msg, AuthProviders? provider, AuthType? type})
const
AuthResponse.unauthorized({dynamic msg, AuthProviders? provider, AuthType? type})
const

Properties

data → T?
final
error → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
isError → bool
no setter
isInitial → bool
no setter
isLoading → bool
no setter
isMessage → bool
no setter
isState → bool
no setter
message → String
no setter
provider → AuthProviders
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → AuthStatus
no setter
type → AuthType
no setter

Methods

isCurrentProvider(AuthProviders value) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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