removeWhere method

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

Remove where

Implementation

void removeWhere(bool Function(K key, V value) predicate) {
  final newMap = Map<K, V>.from(value);
  final sizeBefore = newMap.length;
  newMap.removeWhere(predicate);
  if (sizeBefore != newMap.length) value = newMap;
}