removeWhere method

void removeWhere(
  1. bool test(
    1. K key
    )
)

Implementation

void removeWhere(bool Function(K key) test) {
  final List<K> doomed = _entries.keys.where(test).toList();
  for (final K key in doomed) {
    remove(key);
  }
}