AsyncError<ValueT> constructor
const
AsyncError<ValueT> (
- Object error,
- StackTrace stackTrace, {
- @internal bool? retrying,
Creates an AsyncValue in the error state.
I don't have a StackTrace, what can I do? You can still construct an AsyncError by passing StackTrace.current:
AsyncValue.error(error, StackTrace.current);
Implementation
const AsyncError(
Object error,
StackTrace stackTrace, {
@internal bool? retrying,
}) : this._(
(err: error, stack: stackTrace, retrying: retrying),
loading: null,
value: null,
);