dart / 1 / dart-collection / maps / foreach.html

forEach method

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]);
  }
}

© 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/Maps/forEach.html