cancel method

void cancel()

Cancels the timer. 取消计时器.

Implementation

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