addFirst method Null safety
- 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);
}
Adds node
to the beginning of this container children list.
void addFirst(T node) {
assert(node!._parent == null);
node!._parent = this;
_children.addFirst(node);
}