FutureData<A> class

Represents the case where an async operation succeeds, and has returned a some data.

Inheritance

Constructors

FutureData(A data)
const

Properties

data → A
final
dataOrNull → A?
Attempt to read the data from this FutureValue, otherwise return null if it is in a loading or error state.
final
hashCode int
The hash code for this object.
no setteroverride
isLoading bool
Is the data still loading?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

combineWith<B>(FutureValue<B> other) FutureValue<(A, B)>
inherited
combineWith2<B, C>(FutureValue<B> one, FutureValue<C> two) FutureValue<(A, B, C)>
inherited
map<B>(B f(A a)) FutureValue<B>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
when<B>({required B data(A a), required B error(dynamic error, StackTrace stackTrace), required B loading(A? previousData)}) → B
override
whenOrElse<B>({B data(A a)?, B error(dynamic error, StackTrace stackTrace)?, B loading(A? previousData)?, required B orElse()}) → B
override

Operators

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