toFutureOption method

Future<Option<T>> toFutureOption()

Converts a Future<T?> to Future<Option

Implementation

Future<Option<T>> toFutureOption() {
  return then((e) => Option.of(e));
}