PromiseData<T> class abstract

Inheritance

Constructors

PromiseData(T value, {bool isDone})
const
factory

Properties

copyWith → $PromiseDataCopyWith<T, PromiseData<T>>
no setter
hashCode int
The hash code for this object.
no setterinherited
isDone bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
no setteroverride

Methods

map<TResult extends Object?>({required TResult loading(PromiseLoading<T> value), required TResult error(PromiseError<T> value), required TResult data(PromiseData<T> value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult loading(PromiseLoading<T> value)?, TResult error(PromiseError<T> value)?, TResult data(PromiseData<T> value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult loading(PromiseLoading<T> value)?, TResult error(PromiseError<T> value)?, TResult data(PromiseData<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult loading()?, TResult error(Object? error)?, TResult data(T value, bool isDone)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult loading(), required TResult error(Object? error), required TResult data(T value, bool isDone)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult loading()?, TResult error(Object? error)?, TResult data(T value, bool isDone)?}) → TResult?
inherited

Operators

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