AsyncError<T extends Object?> constructor

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

Creates an AsyncError object representing the phase where an asynchronous operation has resulted in an error.

Implementation

const AsyncError({T? data, super.error, super.stackTrace}) : super(data);