unzip method

Future<(Option<T>, Option<U>)> unzip()

Unzips a FutureOption containing a tuple into a tuple of FutureOptions.

Implementation

Future<(Option<T>, Option<U>)> unzip() async {
  var optionTuple = await this;
  if (optionTuple.isSome()) {
    var (one, two) = optionTuple.unwrap();
    return (Some(one), Some(two));
  }
  return (_None(), _None());
}