run method

void run(
  1. VoidCallback action
)

Implementation

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