cancel method

bool cancel()

Cancels the debouncer.

Implementation

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