didAdoptChild method
- RenderBox child
override
Called during RenderSliverMultiBoxAdaptor.adoptChild or RenderSliverMultiBoxAdaptor.move.
Subclasses must ensure that the SliverMultiBoxAdaptorParentData.index field of the child's RenderObject.parentData accurately reflects the child's index in the child list after this function returns.
Implementation
@override
void didAdoptChild(RenderBox child) {
assert(_currentlyUpdatingChildIndex != null);
final SliverMultiBoxAdaptorParentData childParentData = child.parentData! as SliverMultiBoxAdaptorParentData;
childParentData.index = _currentlyUpdatingChildIndex;
}