removeWhere method

void removeWhere (
  1. bool test(
    1. 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);
}