reset method
void
reset()
Resets the timer.
Throws an assertion error if endTime is not null.
Implementation
void reset() {
assert(endTime == null, 'endTime must be null to reset');
_duration = Duration.zero;
_pause = Duration.zero;
if (_timer != null) {
_timer?.cancel();
}
notifyListeners();
}