appendChild method

void appendChild(
  1. Node child
)

Reparent child to this node.

Implementation

void appendChild(Node child) {
	// update this node
	_children.add(child);
	// update child
	child.parent = this;
}