void addChild(String name, Node node)

Adds a child to this node.

Source

void addChild(String name, Node node) {
  children[name] = node;
}