DebouncedEventListener<T> class

Used by EventRule for triggering onEvent callback.

A type of EventListener which delays its calls to prevent frequent calls.

Inheritance

Constructors

DebouncedEventListener(EventCallback<T> onEvent, {Duration duration = const Duration(seconds: 1)})
Used by EventRule for triggering onEvent callback.

Properties

duration Duration
Debounce time
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

call(T data) → void
override
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