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' ));
Properties
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