Result<T>.failure constructor

Result<T>.failure(
  1. ErrorMessage error
)

Factory for creating a Result instance representing a failure.

Implementation

factory Result.failure(ErrorMessage error) => Failure<T>(error);