isAnd method

bool isAnd(
  1. bool test(
    1. T
    )
)

Implementation

bool isAnd(bool Function(T) test) => switch (this) {
  T value => test(value),
  null => false,
};