call method

void call()

Runs action now, or once more when the current interval ends.

Implementation

void call() {
  if (_timer != null) {
    _pending = true;
    return;
  }
  action();
  _timer = Timer(interval, _onTick);
}