allMatch abstract method

bool allMatch(
  1. bool predicate(
    1. int
    )
)

Returns true if all elements match the predicate.

Example

final allPositive = IntStream.range(1, 5)
    .allMatch((n) => n > 0); // true

Implementation

bool allMatch(bool Function(int) predicate);