reset method

void reset()

Restarts the timer so that it counts down from its original duration again.

This restarts the timer even if it has already fired or has been canceled.

Implementation

void reset() {
  _timer.cancel();
  _timer = Timer(_duration, _callback);
}