cancel method
void
cancel()
Cancels any pending debounced or throttled callbacks.
If there is an active debounce timer, it will be canceled, and the debounced callback associated with that timer will not be invoked.
If there is an active throttle timer, it will be canceled, and the throttled callback associated with that timer will not be invoked.
Implementation
void cancel() {
_debounceTimer?.cancel();
_throttleTimer?.cancel();
_throttleTimer = null;
}