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
void updateTree(double dt) {
update(dt);
final children = _children;
if (children != null) {
for (final child in children) {
child.updateTree(dt);
}
}
}