addFirst method

void addFirst(
  1. QuillContainer<Node?> node
)
inherited

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();
}