XAsyncState<T>.error constructor
const
XAsyncState<T>.error (
- Object error, [
- 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);