update method

  1. @override
void update(
  1. double delta
)
override

Implement this method to update the game state, given the time delta that has passed since the last update. Keep the updates as short as possible. delta is in seconds, with microseconds precision.

Implementation

@override
void update(double delta) {
  super.update(delta);
  calculatePadding();
  childBuild?.update(delta);
}