removeChild abstract method

void removeChild(
  1. RenderBox child
)

Remove the given child from the child list.

Called by RenderSliverVariableSizeBoxAdaptor.collectGarbage, which itself is called from RenderSliverVariableSizeBoxAdaptor.performLayout.

The index of the given child can be obtained using the RenderSliverVariableSizeBoxAdaptor.indexOf method, which reads it from the SliverVariableSizeBoxAdaptorParentData.index field of the child's RenderObject.parentData.

Implementation

void removeChild(RenderBox child);