cancel method

void cancel()

取消计时统计

Implementation

void cancel() {
  if (_timer?.isActive ?? false) {
    _timer?.cancel();
  }
}