Debouncer class

This "function" class is the implementation of debouncer() Worker. It calls the function passed after specified delay parameter. Example:

final delayed = Debouncer( delay: Duration( seconds: 1 )) ;
print( 'the next function will be called after 1 sec' );
delayed( () => print( 'called after 1 sec' ));

Constructors

Debouncer({required Duration delay})

Properties

delay Duration
final
hashCode int
The hash code for this object.
no setterinherited
isRunning bool
Notifies if the delayed call is active.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(void action()) → void
cancel() → void
Cancel the current delayed call.
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