AsyncDebouncer class

Debouncer that returns a Future for async operations

Constructors

AsyncDebouncer({required Duration duration})

Properties

duration Duration
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

call(Future<void> callback()) Future<void>
Execute an async function with debouncing Returns a future that completes when the debounced function executes
cancel() → void
Cancel any pending debounced call
dispose() → void
Dispose the debouncer and clean up resources
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