forEach method

  1. @override
void forEach(
  1. void f(
    1. K key,
    2. V value

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

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


void forEach(void Function(K key, V value) f) {
  _map.forEach((K key, Iterable<V> values) {
    for (final V value in values) {
      f(key, value);