ErrorOr<T>.value constructor

const ErrorOr<T>.value(
  1. T value
)

Create an ErrorOr instance of type _ValueWrapper given a value.

Implementation

const factory ErrorOr.value(T value) = _ValueWrapper<T>;