allMatch abstract method

bool allMatch(
  1. bool predicate(
    1. T
    )
)

Returns whether all elements of this stream match the provided predicate.

Example

final allPositive = GenericStream.of([1, 2, 3, 4, 5])
    .allMatch((n) => n > 0); // true

Implementation

bool allMatch(bool Function(T) predicate);