none method
Returns true if no element satisfies test.
The logical complement of Iterable.any.
Example:
[1, 2, 3].none((n) => n > 5); // true
Implementation
bool none(bool Function(E element) test) => !any(test);
Returns true if no element satisfies test.
The logical complement of Iterable.any.
Example:
[1, 2, 3].none((n) => n > 5); // true
bool none(bool Function(E element) test) => !any(test);