debounce method
- void newCallback()?,
Starts the debouncer.
This function is called automatically when default factory constructor is used.
Implementation
void debounce({void Function()? newCallback}) {
_timer?.cancel();
_timer = Timer(duration, newCallback ?? callback);
}