update method

void update(
  1. double dt
)

Implementation

void update(double dt) {
  final animation = animationRef;
  if (animation == null) {
    return;
  }

  clock += dt;
  while (clock > animation.lastTime) {
    clock -= animation.lastTime;
  }
}