AsyncError<T> constructor
const
AsyncError<T> (
- Object? error, [
- StackTrace? stackTrace
Creates an error state with the given error and optional stack trace.
Parameters:
error: The error that occurredstackTrace: Optional stack trace of the error
Implementation
const AsyncError(this.error, [this.stackTrace]);