AsyncStateError<T> constructor

AsyncStateError<T>(
  1. Object error, [
  2. StackTrace? trace,
  3. T? lastValue
])

Create an AsyncState representing the error state with error.

Implementation

AsyncStateError(this.error, [StackTrace? trace, super.lastValue]) :
    stackTrace = trace ?? StackTrace.current;