adoptChild method

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

Mark the given node as being a child of this node.

Subclasses should call this function when they acquire a new child.

Implementation

@override
void adoptChild(AbstractNode child) {
  markNeedsAddToScene();
  super.adoptChild(child);
}