handleAutoPlay method

void handleAutoPlay()

Implementation

void handleAutoPlay() {
  bool autoPlayEnabled = widget.options.autoPlay;

  if (autoPlayEnabled && timer != null) return;

  clearTimer();
  if (autoPlayEnabled) {
    resumeTimer();
  }
}