AuthResponse<T extends Auth<AuthKeys>> class

Constructors

AuthResponse.authenticated(T? data, {String? msg, AuthType? type})
const
AuthResponse.data(T? data, {AuthStatus? state, String? msg, AuthType? type})
const
AuthResponse.failure(String msg, {AuthType? type})
const
AuthResponse.guest(T? data, {String? msg, AuthType? type})
const
AuthResponse.initial({String? msg, AuthType? type})
const
AuthResponse.loading([AuthType? type])
const
AuthResponse.message(String msg, {AuthType? type})
const
AuthResponse.unauthenticated({String? msg, AuthType? type})
const
AuthResponse.unauthorized({String? msg, AuthType? type})
const

Properties

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

Methods

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