removeWhere method

  1. @override
void removeWhere(
  1. bool test(
    1. V element
    )
)
override

Implementation

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