throttle method
Throttle during delay.
Implementation
void throttle(VoidCallback callback) {
if (isClickable) {
isClickable = false;
callback.call();
Future.delayed(delay ?? const Duration(milliseconds: 1000), () {
isClickable = true;
});
}
}