call method

void call(
  1. void action()
)

Implementation

void call(void Function() action) {
  _timer?.cancel(); // cancel the current task
  _timer = Timer(delay, action);
}