throttleGuaranteeLast<T> function
Like throttle, but if the last call to this function is throttled, it will be executed once the throttling period expires, starting a new throttling period.
Implementation
UnaryFunction<T> throttleGuaranteeLast<T>(
UnaryFunction<T?> delegate, Duration interval) =>
_throttle(delegate, interval, guaranteeLast: true);