operator []= method

void operator []=(
  1. int index,
  2. ChildType child
)

Implementation

void operator []=(int index, ChildType child) {
  if (index < 0) {
    throw ArgumentError(index);
  }
  _removeChild(_childRenderObjects[index]);
  adoptChild(child);
  _childRenderObjects[index] = child;
}