run method

void run(
  1. void callback()
)

Schedules the callback to run after delayDuration. If called again before the timer expires, the previous scheduled callback is cancelled.

Implementation

void run(void Function() callback) {
  _debounceTimer?.cancel();
  _debounceTimer = Timer(delayDuration, callback);
}