start method

Cmd start()

Creates a command to start the timer.

This will start emitting tick messages at the configured interval.

Implementation

Cmd start() {
  // Increment tag to ensure old ticks don't affect new timer runs.
  final newTag = _tag + 1;
  return Cmd.batch([
    Cmd.message(TimerStartStopMsg(true, newTag)),
    _tickWithTag(newTag),
  ]);
}