DebounceTimer class

Use for create new instance debounce timer, don`t forget call dispose for close instance.

delay - delay time, default value is 300 milliseconds

Constructors

DebounceTimer({Duration? delay})

Properties

delay 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

debounce(VoidCallback callback) → void
Wait time, and call callback when time is elapsed
dispose() → void
Cancel timer, use necessary for prevent memory leaks
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