addFirst method

void addFirst(
  1. T node
)

Adds node to the beginning of this container children list.

Implementation

void addFirst(T node) {
  assert(node._parent == null);
  node._parent = this;
  _children.addFirst(node);
}