okOrElse<E extends Object> method

Future<Result<T, E>> okOrElse<E extends Object>(
  1. E errFn()
)

Implementation

Future<Result<T, E>> okOrElse<E extends Object>(E Function() errFn) {
  return then((option) => option.okOrElse(errFn));
}