updateSlot method

  1. @override
void updateSlot(
  1. Object? newSlot
)
override

Called by updateSlotForChild when the framework needs to change the slot that this Element occupies in its ancestor.

Implementation

@override
void updateSlot(Object? newSlot) {
  final Object? oldSlot = slot;
  assert(oldSlot != newSlot);
  super.updateSlot(newSlot);
  assert(slot == newSlot);
  assert(_ancestorRenderObjectElement == _findAncestorRenderObjectElement());
  _ancestorRenderObjectElement?.moveRenderObjectChild(renderObject, oldSlot, slot);
}