optionFut method

FutureOr<Option<T>> optionFut()

Implementation

FutureOr<Option<T>> optionFut() {
  return then((value) {
    if (value == null) return const None();
    return Some(value);
  }, onError: (e) => const None());
}