debounce abstract method

Future<void> debounce(
  1. Duration duration
)

debounce is a technique used to control the rate at which a function is called. It ensures that a function is only executed after a certain duration has passed since the last time it was called.

For example:

ref.debounce(Duration(seconds: 1));

input:  1-2-3---4---5-6-|
result: ------3---4-----6|

See also:

Implementation

Future<void> debounce(Duration duration);