mapOrElse<U> method
Implementation
Future<U> mapOrElse<U>(U Function() defaultFn, U Function(T) f) {
return then((option) => option.isSome() ? f(option as T) : defaultFn());
}
Future<U> mapOrElse<U>(U Function() defaultFn, U Function(T) f) {
return then((option) => option.isSome() ? f(option as T) : defaultFn());
}