method stop


void stop()

Stops the job. It can be restarted by calling start with a new callback.

Source

void stop() {
  if (_id != null) {
    window.cancelAnimationFrame(_id);
    _id = null;
  }
  if (_timer != null) {
    _timer.cancel();
    _timer = null;
  }
}