mapOrElse<U> method
Implementation
@pragma("vm:prefer-inline")
Future<U> mapOrElse<U>(U Function() defaultFn, U Function(T) f) {
return then((option) => option.isSome() ? f(option as T) : defaultFn());
}
@pragma("vm:prefer-inline")
Future<U> mapOrElse<U>(U Function() defaultFn, U Function(T) f) {
return then((option) => option.isSome() ? f(option as T) : defaultFn());
}