isSomeAnd method

Future<bool> isSomeAnd(
  1. FutureOr<bool> f(
    1. T
    )
)

Implementation

@pragma("vm:prefer-inline")
Future<bool> isSomeAnd(FutureOr<bool> Function(T) f) {
  return then((option) => switch (option) {
        Some(:final v) => f(v),
        _ => false,
      });
}