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