appendChild method

void appendChild(
  1. Component child
)
inherited

Adds the child to the children list and re-wires the parent reference of the child to the parent. Effectively detach and append.

Implementation

void appendChild(Component child) {
  child.parent = this;
}