cancel method

  1. @override
void cancel([
  1. Exception? exception
])
override

Cancels all operations with this token.

An optional exception can be provided to give a cancellation reason.

Implementation

@override
void cancel([Exception? exception]) {
  _timer?.cancel();
  super.cancel(exception);
}