core/utils/throttle library

Functions

throttled(VoidCallback fn, {Duration window = const Duration(milliseconds: 600)}) → VoidCallback
Wraps fn so repeated calls within window of 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 from fn still propagates (never swallowed).