updateSlot method

  1. @protected
  2. @mustCallSuper
void updateSlot(
  1. 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;
}