AsyncError<T> class abstract

Inheritance

Constructors

AsyncError(Object error, [StackTrace? stackTrace])
factory

Properties

copyWith → $AsyncErrorCopyWith<T, AsyncError<T>>
no setter
data AsyncData<T>?
The current data, or null if in loading/error.
no setterinherited
error Object
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
stackTrace StackTrace?
no setter

Methods

map<TResult extends Object?>({required TResult data(AsyncData<T> value), required TResult loading(AsyncLoading<T> value), required TResult error(AsyncError<T> value)}) → TResult
inherited
maybeMap<TResult extends Object?>({TResult data(AsyncData<T> value)?, TResult loading(AsyncLoading<T> value)?, TResult error(AsyncError<T> value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult data(T value)?, TResult loading()?, TResult error(Object error, StackTrace? stackTrace)?, 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 data(T value), required TResult loading(), required TResult error(Object error, StackTrace? stackTrace)}) → TResult
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