RateLimit extension
Useful rate limiter extensions for Function class.
- on
Methods
-
debounced(
Duration wait, {bool leading = false, bool trailing = true, Duration? maxWait}) → Debounce -
Available on Function, provided by the RateLimit extension
Converts this into a Debounce function. -
throttled(
Duration wait, {bool leading = true, bool trailing = true}) → Throttle -
Available on Function, provided by the RateLimit extension
Converts this into a Throttle function.