AsyncError<T> constructor

const AsyncError<T>({
  1. required Object error,
  2. StackTrace? stackTrace,
})

Creates a AsyncError with the given error and optional stackTrace.

Implementation

const AsyncError({required this.error, this.stackTrace});