run method

void run(
  1. void action()
)

Schedules action, cancelling the one waiting before it. debouncer.run(() => search(text))

Implementation

void run(void Function() action) {
  _timer?.cancel();
  _timer = Timer(delay, action);
}