okOr<E extends Object> method

Future<Result<T, E>> okOr<E extends Object>(
  1. E err
)

Implementation

@pragma("vm:prefer-inline")
Future<Result<T, E>> okOr<E extends Object>(E err) {
  return then((option) => option.okOr(err));
}