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 as Node);
}