void forEachChild(void callback(String name, Node node))

Iterates over all the children of this node and passes them to the specified callback.

Source

void forEachChild(void callback(String name, Node node)) {
  children.forEach(callback);
  if (profile != null) {
    profile.children.forEach((String str, Node n) {
      if (!children.containsKey(str)) {
        callback(str, n);
      }
    });
  }
}