removeWhere method

void removeWhere (bool test(V element))
override

See Set.removeWhere

Implementation

void removeWhere(bool test(V element)) {
  List<V> damned = [];
  for (var target in this) {
    if (test(target)) {
      damned.add(target);
    }
  }
  removeAll(damned);
}