add method

void add(
  1. T node
)

Adds node to the end of this container children list.

Implementation

void add(T node) {
  assert(node?.parent == null);
  node?.parent = this;
  _children.add(node as Node);
}