LoadingData<T> class

StatefulData indicating loading state for underlying object

Inheritance

Constructors

LoadingData()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runIfSuccess<X>(X block(T)) → X?
Executes given block if this data is SuccessData
inherited
runIfSuccessAsync<X>(Future<X> block(T)) Future<X?>
Executes given block if this data is SuccessData
inherited
toString() String
A string representation of this object.
inherited
unwrap() → T
Returns success data or throws exception if value is not SuccessData
inherited

Operators

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