listNotMatchesAll<T> function

bool listNotMatchesAll<T>(
  1. Iterable<T>? list,
  2. bool matcher(
    1. T entry
    )
)

Returns true if at least ONE list element does NOT matches matcher.

Implementation

bool listNotMatchesAll<T>(Iterable<T>? list, bool Function(T entry) matcher) {
  if (list == null || list.isEmpty) return false;
  for (var e in list) {
    if (!matcher(e)) return true;
  }
  return false;
}