AsyncError<T> class final

The error of an AsyncValue.

Inheritance

Properties

data → T?
The data of an AsyncValue. Is always T if the state is AsyncData.
no setterinherited
error Object
The error of an AsyncValue. Is not null if the state is AsyncError.
final
hasData bool
Whether the state is AsyncData.
no setterinherited
hasError bool
Whether the state is AsyncError.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isLoading bool
Whether the state is AsyncLoading.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace
The stack trace of an AsyncValue. Is not null if the state is AsyncError.
final

Methods

maybeWhen<R>({R data(T data)?, R error(Object error, StackTrace stackTrace)?, R loading()?, required R orElse()}) → R
Syntactic sugar for AsyncSnapshot.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
when<R>({required R data(T data), required R loading(), required R error(Object error, StackTrace stackTrace)}) → R
Syntactic sugar for AsyncValue.
inherited

Operators

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