run method

void run(
  1. VoidCallback action
)

Implementation

void run(VoidCallback action) {
  if (_timer == null || !_timer!.isActive) {
    _timer = Timer(Duration(milliseconds: milliseconds), () {
      action();
    });
  }
}