addFirst method
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);
clearLengthCache();
}
Adds node
to the beginning of this container children list.
void addFirst(T node) {
assert(node?.parent == null);
node?.parent = this;
_children.addFirst(node as Node);
clearLengthCache();
}