didAdoptChild method

  1. @override
void didAdoptChild(
  1. RenderBox child
)
override

Copied from SliverMultiBoxAdaptorElement.didAdoptChild. An assertion has been removed to allow adoption of off-list elements.

Implementation

@override
void didAdoptChild(final RenderBox child) {
  if (_creatingDisposableElement) return;
  assert(_currentlyUpdatingChildIndex != null);
  final childParentData =
      child.parentData! as MultiSliverMultiBoxAdaptorParentData;
  childParentData.index = _currentlyUpdatingChildIndex;
  childParentData.key = _currentlyUpdatingPopUpList;
}