cancel method

void cancel()

Cancel the timer.

Implementation

void cancel() {
  _mTimer?.cancel();
  _mTimer = null;
  _isActive = false;
}