tick method

  1. @nonVirtual
void tick(
  1. Tick tick
)

Calls tick with the elapsed seconds on every frame.

tick((dt) {
  shape.angle += pi / 4 * dt;
});

Implementation

@nonVirtual
void tick(Tick tick) {
  (_ticks ??= []).add(tick);
}