AsyncLoading<T> class Null safety

Inheritance

Constructors

AsyncLoading()
const
factory

Properties

data AsyncData<T>?
The current data, or null if in loading/error. [...]
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

map<TResult extends Object?>({required TResult data(AsyncData<T> value), required TResult loading(AsyncLoading<T> value), required TResult error(AsyncError<T> value)}) → TResult
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult data(AsyncData<T> value)?, TResult loading(AsyncLoading<T> value)?, TResult error(AsyncError<T> value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult data(T value)?, TResult loading()?, TResult error(Object error, StackTrace? stackTrace)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
when<TResult extends Object?>({required TResult data(T value), required TResult loading(), required TResult error(Object error, StackTrace? stackTrace)}) → TResult
@optionalTypeArgs, inherited
whenData<R>(R cb(T value)) AsyncValue<R>
Shorthand for when to handle only the data case.
inherited

Operators

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