throttle( Function func, [ Duration delay = const Duration(milliseconds: 2000), ]) { if (enable == true) { enable = false; func.call(); Timer(delay, () { enable = true; }); } }