orElse method

Future<Option<T>> orElse(
  1. Option<T> f()
)

Implementation

Future<Option<T>> orElse(Option<T> Function() f) {
  return then((option) => option.isNone() ? f() : option);
}