Result<T>.error constructor

Result<T>.error(
  1. BaseError error
)

A failed result with a BaseError.

Implementation

factory Result.error(BaseError error) = _ErrorResult<T>;