run method

void run(
  1. void action()
)

Implementation

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