UDebouncer class
Runs only the last call after a quiet delay, e.g. search-as-you-type. final UDebouncer d = UDebouncer(delay: 400.ms); d.run(search);
Constructors
- UDebouncer({required Duration delay})
-
Makes a debouncer that waits
delayafter the last call.
Properties
Methods
-
cancel(
) → void - Drops the waiting call.
-
dispose(
) → void - Same as cancel(); call it in your State.dispose().
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
void action()) → void -
Schedules
action, cancelling the one waiting before it.debouncer.run(() => search(text)) -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited