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