PrepareDebounce class
A simple debounce utility to delay execution of a callback, ensuring that rapid successive calls within delayDuration only result in a single execution.
Constructors
- PrepareDebounce({Duration delayDuration = const Duration(milliseconds: 10)})
Properties
- delayDuration → Duration
-
The duration to wait before executing the callback.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
void callback()) → void -
Schedules the
callbackto run after delayDuration. If called again before the timer expires, the previous scheduled callback is cancelled. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited