DeBouncer class final

de-bounces run method calls and runs it only once in given milliseconds

Constructors

DeBouncer([Duration? duration])
Allows to create an instance with optional Duration

Properties

duration Duration
de-bounce period
final
hashCode int
The hash code for this object.
no setterinherited
isRunning bool
Returns true if timer is running and a call is scheduled to run in future else returns false.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(DeBounceAction action) → void
alias for run
cancel() → void
Allows to cancel current timer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(DeBounceAction action) → void
Runs action after debounced interval.
toString() String
A string representation of this object.
inherited

Operators

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