Debouncer class

Utility that delays execution of the last scheduled callback until duration has elapsed without a new schedule.

Constructors

Debouncer({Duration duration = kDefaultDebounce})

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
timer Timer?
getter/setter pair

Methods

cancel() → void
Cancels a pending scheduled callback, if any.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(FutureOr<void> f(), {Duration? duration}) → void
Schedules f to run after duration; resets the timer if called again.
toString() String
A string representation of this object.
inherited

Operators

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