okOrElse<E extends Object> method

Err<Never, E> okOrElse<E extends Object>(
  1. E errFn()
)

Implementation

@pragma("vm:prefer-inline")
Err<Infallible, E> okOrElse<E extends Object>(E Function() errFn) {
  return Err(errFn());
}