forEach method

void forEach(
  1. void callback(
    1. K key,
    2. V value
    )
)
inherited

Applies callback to each key/value of this multimap.

Implementation

void forEach(void Function(K key, V value) callback) {
  for (final MapEntry(:key, value: values) in _map.entries) {
    for (final value in values) {
      callback(key, value);
    }
  }
}