run method

void run(
  1. VoidCallback action
)

Runs the action after delay has passed without another call.

Implementation

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