RateLimit extension Null safety

Useful rate limiter extensions for Function class.

on

Methods

debounced(Duration wait, {bool leading = false, bool trailing = true, Duration? maxWait}) Debounce
Converts this into a Debounce function.
throttled(Duration wait, {bool leading = true, bool trailing = true}) Throttle
Converts this into a Throttle function.