utils/functional/functional library
Classes
-
Debouncer<
T> -
This class will 'debounce' a function which prevents it from
being called too many times. Ideal for search bars or other situations where a call may be trigged on
several rapid events.
As dart does not allow varargs or something similar, pass in a class T to be your arguments.
When run is called, it will wait (duration) before being called. If run is called again before duration is up, duration will be reset - FP