throttle static method
Implementation
static throttle(Function? doSomething, {durationTime = deFaultDurationTime}) {
int currentTime = DateTime.now().millisecondsSinceEpoch;
if (currentTime - startTime > durationTime) {
doSomething!.call();
startTime = DateTime.now().millisecondsSinceEpoch;
}
}