dropChild method Null safety

  1. @override
void dropChild(
  1. 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);
}