tick method

void tick(
  1. double nowMs
)

Um tique do relógio: a cápsula em curso enche até a posição nowMs.

Implementation

void tick(double nowMs) {
  final hold = state.shape.hold;
  if (hold == null) return;
  emit(state.copyWith(fill: holdFractionAt(hold, nowMs)));
}