core/utils/throttle library
Functions
-
throttled(
VoidCallback fn, {Duration window = const Duration(milliseconds: 600)}) → VoidCallback -
Wraps
fnso repeated calls withinwindowof the last one that ran are dropped — guards a button/action callback against rage-tap causing a double purchase, double navigation, double submit. Only blocks double-firing; a throw fromfnstill propagates (never swallowed).