anyMatch abstract method

bool anyMatch(
  1. bool predicate(
    1. int
    )
)

Returns true if any elements match the predicate.

Example

final hasEven = IntStream.range(1, 5)
    .anyMatch((n) => n % 2 == 0); // true

Implementation

bool anyMatch(bool Function(int) predicate);