AsyncValue<T>.error constructor
AsyncValue<T>.error (
- Object error, [
- StackTrace? stackTrace
Creates an AsyncValue in error state.
The parameter error
cannot be null
.
Implementation
factory AsyncValue.error(Object error, [StackTrace? stackTrace]) =
AsyncError<T>;