run method

void run(
  1. VoidCallback action
)

Implementation

void run(VoidCallback action) {
  _timer?.cancel();        // Cancel any existing timer
  _timer = Timer(delay, action); // Start new one
}