cancel method

bool cancel()

Cancels the debouncer.

Implementation

bool cancel() {
  if (_timer != null) {
    if (_timer!.isActive) {
      _timer!.cancel();
      _timer = null;
      return true;
    }
  }
  return false;
}