cancel method
Cancels the debouncer.
Implementation
bool cancel() {
if (this._timer != null) {
if (this._timer!.isActive) {
this._timer!.cancel();
this._timer = null;
return true;
}
}
return false;
}
Cancels the debouncer.
bool cancel() {
if (this._timer != null) {
if (this._timer!.isActive) {
this._timer!.cancel();
this._timer = null;
return true;
}
}
return false;
}