cancel method

void cancel()

Implementation

void cancel() {
  final aTimer = _timer;
  if (aTimer != null && aTimer.isActive) {
    aTimer.cancel();
  }
  _timer = null;
}