AsyncStateData<T> class

Represents the value state.

An asynchronous cell is in this state when the Future held in it completes with a value.

Inheritance

Constructors

AsyncStateData(T value, [T? lastValue])
Create an AsyncState representing the data state with value.

Properties

hashCode int
The hash code for this object.
no setteroverride
isData bool
Is this a data state?
no setteroverride
isError bool
Is this an error state?
no setterinherited
isLoading bool
Is this a pending asynchronous value state?
no setterinherited
lastValue → T?
The last value to which the Future completed or null if none.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The completed value of the Future.
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

Operators

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