cancel method

void cancel()

Cancels the current delayed call, if any.

Implementation

void cancel() => _timer?.cancel();