Debouncer constructor

Debouncer({
  1. required Duration delay,
  2. required void action(),
})

Constructs a Debouncer instance with the specified delay and action.

delay is the amount of time to wait before executing the action. action is the function that will be executed after the delay.

Implementation

Debouncer({
  required this.delay,
  required this.action,
});