XAsyncState<T>.error constructor

const XAsyncState<T>.error(
  1. Object error, [
  2. StackTrace? stackTrace
])

Creates a failed state with its original error information.

Implementation

const XAsyncState.error(Object error, [StackTrace? stackTrace])
  : this._(status: XAsyncStatus.error, error: error, stackTrace: stackTrace);