DebouncedEventListener<T> class
Used by EventRule for triggering onEvent
callback.
A type of EventListener which delays its calls to prevent frequent calls.
- Inheritance
-
- Object
- EventListener<
T> - DebouncedEventListener
Constructors
-
DebouncedEventListener(EventCallback<
T> onEvent, {Duration duration = const Duration(seconds: 1)}) -
Used by EventRule for triggering
onEvent
callback.
Properties
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