start method

void start()

Implementation

void start() {
  if (_running) return;
  _running = true;
  _timer = Timer.periodic(const Duration(seconds: 1), (_) {
    setState(() => _elapsed += const Duration(seconds: 1));
    widget.onTick?.call(_elapsed);
  });
}