add method
Add a child node.
Implementation
@override
void add(Node child) {
if (child._parent != null) {
throw Exception('Child already has a parent');
}
children.add(child);
child._parent = this;
child._markWorldTransformDirty();
final renderScene = _renderScene;
if (renderScene != null) {
child._mount(renderScene);
}
markBoundsDirty();
}