reset method

void reset()

Resets the time countdown.

This method does not stop or start the timer.

Implementation

void reset() {
  if (_callback == null) {
    return;
  }

  _stopwatch.reset();
  if (_stopwatch.isRunning) {
    _timer.cancel();
    _timer = Timer(_duration, _handle);
  }
}