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