forEach method

void forEach (void f(K key, V value))
inherited

Applies f to each {key, value} pair of the multimap.

It is an error to add or remove keys from the map during iteration.

Implementation

void forEach(void f(K key, V value)) {
  _map.forEach((K key, Iterable<V> values) {
    values.forEach((V value) => f(key, value));
  });
}