Метод forEach
void forEach(Применяет f к каждой паре ключ-значение в карте.
Вызов f не должен добавлять или удалять ключи из карты.
Исходный код
void forEach(void action(K key, V value)) {
for (K key in keys) {
action(key, this[key]);
}
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-collection/MapMixin/forEach.html