AsyncError<T> class Null safety

Creates an AsyncValue in error state.

The parameter error cannot be null.

Implemented types
Available Extensions

Constructors

AsyncError(Object error, {StackTrace? stackTrace})
Creates an AsyncValue in error state.
const

Properties

error Object
The error.
final
hashCode int
The hash code for this object.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stackTrace StackTrace?
The stacktrace of error.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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