forEachChild method
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);
}
});
}
}