alternarTempo method
Pausa ou retoma a grade. Retomando, os cliques voltam do tempo em que a grade estiver.
Implementation
void alternarTempo() {
final t = tempo;
if (t == null || _session.origin == null) return;
final now = wallSeconds();
if (_session.paused) {
_session.resume(now);
_stopClicks();
final next = ((now - _session.origin!) / t.beatSeconds).ceil();
_scheduleClicks(next);
} else {
_session.pause(now);
_stopClicks();
}
_avisar();
}