removeWhere method

void removeWhere(
  1. bool test(
    1. K key,
    2. V value
    )
)

Implementation

void removeWhere(bool Function(K key, V value) test) {
  _lruMap.removeWhere((key, value) {
    if (test(key, value.value)) {
      _afterNodeRemove(value);
      return true;
    }
    return false;
  });
}