none method

bool none(
  1. bool predicate(
    1. E element
    )
)

Returns true if none of the elements in the set satisfy the given predicate.

Example:

final numbers = {1, 3, 5};
final hasNoEven = numbers.none((n) => n.isEven); // true

Implementation

bool none(bool Function(E element) predicate) => !any(predicate);