Result<T>.failure constructor
Result<T>.failure (
- ErrorMessage error
Factory for creating a Result instance representing a failure.
Implementation
factory Result.failure(ErrorMessage error) => Failure<T>(error);