none method

bool none(
  1. bool predicate(
    1. T
    )
)

Returns true if none of the elements in this Iterable match predicate.

Implementation

bool none(bool Function(T) predicate) {
  for (final element in this) {
    if (predicate(element)) {
      return false;
    }
  }

  return true;
}