dropChild method

  1. @override
void dropChild (covariant AbstractNode child)
override

Disconnect the given node from this node.

Subclasses should call this function when they lose a child.

Implementation

@override
void dropChild(AbstractNode child) {
  if (!alwaysNeedsAddToScene) {
    markNeedsAddToScene();
  }
  super.dropChild(child);
}