filterNot method

List<T> filterNot(
  1. bool test(
    1. T element
    )
)

Returns a list containing all elements not matching the given predicate!

Implementation

List<T> filterNot(bool Function(T element) test) {
  if (this == null) return <T>[];
  final result = <T>[];
  for (var e in this!) {
    if (!test(e)) {
      result.add(e);
    }
  }

  return result;
}