ValuableAsyncValue<T> class
abstract
Provide a safe representation of an async value
Inspired by the AsyncValue
- Implementers
- Annotations
Constructors
- ValuableAsyncValue.data(T data)
-
Provide an async value with a data
factory
- ValuableAsyncValue.error(Object error, StackTrace stackTrace)
-
Provide an async value from an error
factory
- ValuableAsyncValue.noData({bool closed = false})
-
Provide an async value from a no data momentum
factory
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
-
map<
Output> ({required Output onData(ValuableAsyncData< T> data), required Output onError(ValuableAsyncError<T> error), required Output onNoData(ValuableAsyncNoData<T> noData)}) → Output - Method to provide a value, depending of current async value type
-
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.
inherited