allMatch abstract method

bool allMatch(
  1. bool predicate(
    1. double
    )
)

Returns true if all elements match the predicate.

Example

final allPositive = DoubleStream.of([1.5, 2.5, 3.5])
    .allMatch((d) => d > 0); // true

Implementation

bool allMatch(bool Function(double) predicate);