updateSlot method
- Object? newSlot
Called by updateSlotForChild when the framework needs to change the slot that this Element occupies in its ancestor.
Implementation
@protected
@mustCallSuper
void updateSlot(Object? newSlot) {
assert(_lifecycleState == _ElementLifecycle.active);
assert(_parent != null);
assert(_parent!._lifecycleState == _ElementLifecycle.active);
_slot = newSlot;
}