parentChanged method Null safety

  1. @protected
void parentChanged(
  1. ContainerComponent? from,
  2. ContainerComponent? to
)
@protected, inherited

Implementation

@protected
void parentChanged(ContainerComponent? from, ContainerComponent? to) {
  from?.children.remove(this);
  from?.childRemoved(this);

  to?.children.add(this);
  to?.childAdded(this);

  // We need to resolve our artboard.
  markRebuildDependencies();
}