noneMatch method

  1. @override
bool noneMatch(
  1. bool predicate(
    1. int
    )
)
override

Returns true if no elements match the predicate.

Example

final noNegative = IntStream.range(1, 5)
    .noneMatch((n) => n < 0); // true

Implementation

@override
bool noneMatch(bool Function(int) predicate) {
  return !_source.any(predicate);
}