updateSubtreeNeedsAddToScene method
- @override
override
Traverse the layer tree and compute if any subtree needs addToScene.
A subtree needs addToScene if any of its layer needs addToScene. The ContainerLayer will override this to respect its children.
Implementation
@override
void updateSubtreeNeedsAddToScene() {
super.updateSubtreeNeedsAddToScene();
Layer child = firstChild;
while (child != null) {
child.updateSubtreeNeedsAddToScene();
_subtreeNeedsAddToScene = _subtreeNeedsAddToScene || child._subtreeNeedsAddToScene;
child = child.nextSibling;
}
}