AsyncState<T extends Object> class abstract

Implementers

Constructors

AsyncState.data(T value)
const
factory
AsyncState.error(Object error, StackTrace stackTrace)
const
factory
AsyncState.initial()
const
factory
AsyncState.loading()
const
factory

Properties

error Object?
no setter
hasError bool
no setter
hashCode int
The hash code for this object.
no setterinherited
hasValue bool
no setter
isInitial bool
no setter
isLoading bool
no setter
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
no setter
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
value → T?
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.
inherited
when<R>({required R initial(), required R loading(), required R data(T data), required R error(Object error, StackTrace stackTrace)}) → R

Operators

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