update method

void update(
  1. double dt
)

Called once per frame before rendering.

Implementation

void update(double dt) {
  if (!visible) return;
  onUpdate(dt);
  for (final child in _children) {
    child.update(dt);
  }
}