dynamic forEach(Map map, void f(key, value))

Source

static forEach(Map map, void f(key, value)) {
  for (final k in map.keys) {
    f(k, map[k]);
  }
}