call method

void call(
  1. void action()
)

Implementation

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