Result<T>.failure constructor

const Result<T>.failure({
  1. required String reason,
})

Implementation

const factory Result.failure({required String reason}) = Failure<T>;