Operation failed with error, optionally carrying the previous data.
Equality compares error and previous; stackTrace is excluded.
- Inheritance
-
- Object
- AsyncValue<
T> - AsyncError
Constructors
- AsyncError(Object error, {StackTrace? stackTrace, T? previous})
-
Creates an error state holding
error.const
Properties
- error → Object
-
The thrown error.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isLoading → bool
-
Whether the operation is currently in flight.
no setterinherited
- previous → T?
-
Data from before this failure, kept so UIs can avoid losing content.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The stack trace captured with error, when available.
final
- valueOrNull → T?
-
The most recent usable data: the current value when loaded, or the
previous one carried through loading and error states.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override