Result<T, E>.error constructor

Result<T, E>.error(
  1. E error
)

Creates a Result that represents failure.

Implementation

factory Result.error(E error) => _Error<T, E>(error);