Result<T>.failure constructor

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

Creates a Failure result.

Implementation

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