onRemoved method

  1. @override
  2. @mustCallSuper
void onRemoved()
@mustCallSuper, inherited

Implementation

@override
@mustCallSuper
void onRemoved() {
  for (final parentDep in _dependsOn) {
    parentDep._dependents.remove(this);
  }
  _dependsOn.clear();
  for (final dependent in _dependents) {
    dependent.onDependencyRemoved(this);
  }
  _dependents.clear();
  if (parent != null) {
    parent.children.remove(this);
    parent.childRemoved(this);
  }
  if (artboard != null) {
    context?.markDependencyOrderDirty();
    _changeArtboard(null);
  }
}