debouncer_widget library

A Flutter widget that can debounce actions. Every time a debounced action is called, the timer is reset. At the end of the timer, the action is executed.

Classes

Debouncer
Provides a means to wait for an action to be activated a period of time after the last input. action is the function that is run after the final period of time has elapsed. builder is the input widget or widgets that are acted upon and eventually executed the action. timeout is an optional parameter that dictates how long the application ought to wait before activating the action. debouncerKey is an optional parameter that can be used to identify a specific Debouncer widget if multiple Debouncer widgets are present in the widget tree.
DebouncerState
The state of the Debouncer widget.

Exceptions / Errors

DebouncerException
A custom exception to be thrown by this package. Makes it easy to determine if an exception was thrown by this package.
NoDebouncerFoundException
An exception that is thrown when no Debouncer widget is found in the widget tree.