AsyncState<T> class
Constructors
- AsyncState.error(Object error, [StackTrace? stackTrace])
-
factory
- AsyncState.initial()
-
factory
- AsyncState.loading()
-
factory
- AsyncState.success(T data)
-
factory
Properties
- data → T?
-
final
- error → Object?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
no setter
- isInitial → bool
-
no setter
- isLoading → bool
-
no setter
- isSuccess → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
final
- status → AsyncStatus
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
R> ({required R initial(), required R loading(), required R success(T data), required R error(Object? err, StackTrace? stackTrace)}) → R
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited