insert method

void insert(
  1. int index,
  2. Component component
)

Implementation

void insert(int index, Component component) {
  children.insert(index, component);
  element.children.insert(index, component.element);
  spacing = _spacing;
}