removeAll method

Map<K, V> removeAll(
  1. List<K> keys
)

Removes all entries with keys that are in the provided keys list.

This method iterates over the keys list and removes each key from the map. The method returns the modified map.

keys The list of keys to be removed from the map.

Returns the map with specified keys removed.

Implementation

Map<K, V> removeAll(List<K> keys) {
  for (var key in keys) {
    remove(key);
  }
  return this;
}