Debouncer class

Collapses rapid, repeated calls (e.g. every keystroke in a search field) into a single action, fired milliseconds after the last call.

Constructors

Debouncer({int? milliseconds})

Properties

hashCode int
The hash code for this object.
no setterinherited
milliseconds int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Drop a pending action. Without this the last keystroke before a screen closes still fires its callback against a disposed view model.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(VoidCallback action) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited