RichFunction extension

on

Methods

isDebounce(int ms, List args) → void
Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked. The debounced function comes with a cancel method to cancel delayed func invocations and a flush method to immediately invoke them.
isDelay(int ms, List args) → void
Invokes func after wait milliseconds. Any additional arguments
isMemoize([List? args]) Function
Creates a function that memoizes the result of func. The memoized function can be provided to other functions to avoid invoking func again.
isMultipleComputation([List<Function>? computors, List? args]) → dynamic
Function to compute multiple functions in parallel using the same args
isThrottle(int ms, List args) → dynamic
The function is called at most once in a specified time period.