execute method
void
execute()
Call this method to trigger the debounced execution of the action.
If another execution is already scheduled, this call is ignored.
Implementation
void execute() {
// If the timer is active, ignore this invocation
if (_timer?.isActive ?? false) {
return;
}
// Wait for the specified delay before executing the action
_timer = Timer(delay, action);
}