AsyncValue<T>.error constructor

const AsyncValue<T>.error(
  1. Object error,
  2. {StackTrace? stackTrace}
)

Creates an AsyncValue in error state.

The parameter error cannot be null.

Implementation

// coverage:ignore-start
const factory AsyncValue.error(Object error, {StackTrace? stackTrace}) =
    AsyncError<T>;