AsyncResult<T>.failure constructor

const AsyncResult<T>.failure([
  1. Object? exception,
  2. StackTrace? stackTrace
])

Creates a Failure result.

Implementation

const factory AsyncResult.failure([
  Object? exception,
  StackTrace? stackTrace,
]) = Failure<T>._;