or method

Future<Option<T>> or(
  1. Option<T> other
)

Implementation

Future<Option<T>> or(Option<T> other) {
  return then((option) => option.isNone() ? other : option);
}