insert method

void insert(
  1. int index,
  2. IndexedNode element
)
override

Insert an element in the children list at index

Implementation

void insert(int index, IndexedNode element) {
  element.parent = this;
  children.insert(index, element);
}