run method
Implementation
void run(void Function() action, {int cooldownMs = 1000}) {
if (isBusy.value) return; // Ignore extra taps
isBusy.value = true;
// Call the original callback
action();
// Reset after cooldown
Future.delayed(Duration(milliseconds: cooldownMs), () {
if (isClosed) return;
isBusy.value = false;
});
}