ZetaDebounce class Utils
Debounce utility
Constructors
- ZetaDebounce(void callback(), {Duration duration = _debounceDuration})
-
Constructs and starts the debouncer.
factory
- ZetaDebounce.stopped(void callback(), {Duration duration = _debounceDuration})
- Constructs debouncer but does not initialize the timer.
Properties
- callback → void Function()
-
Function called after Duration has elapsed.
final
- duration → Duration
-
Duration to wait for function to be ready to send.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → void - Cancels the debouncer.
-
debounce(
{void newCallback()?}) → void - Starts the debouncer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited