cancel method
void
cancel()
Cancel the timer
Implementation
void cancel() {
if (_running) {
_timer.cancel();
_running = false;
_completer.complete();
}
}
Cancel the timer
void cancel() {
if (_running) {
_timer.cancel();
_running = false;
_completer.complete();
}
}