forEachChild method

void forEachChild(
  1. void callback(
    1. String name,
    2. Node? node
    )
)

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

Implementation

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