LoadingFuture<T> class

Implementers
Annotations
  • @freezed

Constructors

LoadingFuture.loading()
const
factory
LoadingFuture.refreshing(T lastValue)
const
factory
LoadingFuture.value(T value)
const
factory

Properties

hasData bool
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
no setter

Methods

map<TResult extends Object?>({required TResult loading(FutureLoading value), required TResult refreshing(FutureRefreshing value), required TResult value(FutureValue value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult loading(FutureLoading value)?, TResult refreshing(FutureRefreshing value)?, TResult value(FutureValue value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult loading(FutureLoading value)?, TResult refreshing(FutureRefreshing value)?, TResult value(FutureValue value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult loading()?, TResult refreshing(dynamic lastValue)?, TResult value(dynamic value)?, 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 refreshing(dynamic lastValue), required TResult value(dynamic value)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult loading()?, TResult refreshing(dynamic lastValue)?, TResult value(dynamic value)?}) → TResult?
inherited

Operators

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