AsyncError<T> constructor

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

Creates an error state with the given error and optional stack trace.

Parameters:

  • error: The error that occurred
  • stackTrace: Optional stack trace of the error

Implementation

const AsyncError(this.error, [this.stackTrace]);