removeChildAt method

  1. @override
void removeChildAt(
  1. int index
)
override

Implementation

@override
void removeChildAt(int index) {
  if (index < 0 || index >= _children.length) {
    throw ArgumentError('The supplied index is out of bounds.');
  } else {
    final child = _children[index];
    child._parent = null;
    _children.removeAt(index);
  }
}