updateTree method
This method traverses the component tree and calls update on all its children according to their priority order, relative to the priority of the direct siblings, not the children or the ancestors.
Implementation
@override
void updateTree(double dt) {
// Reuse the same list to avoid allocations per frame.
_gesturesComponents.clear();
for (final c in world.children) {
if (_hasGesture(c)) {
_gesturesComponents.add(c as PointerDetectorHandler);
}
}
for (final c in camera.viewport.children) {
if (_hasGesture(c)) {
_gesturesComponents.add(c as PointerDetectorHandler);
}
}
super.updateTree(dt);
}