handleAutoPlay method

  1. @nonVirtual
void handleAutoPlay(
  1. bool autoPlay
)

Implementation

@nonVirtual
void handleAutoPlay(bool autoPlay) {
  if (this.autoPlay == autoPlay) return;

  _autoPlay = autoPlay;
  if (!_init || isBlocked) return;

  if (autoPlay) {
    _startAutoPlay();
  } else {
    _stopAutoPlay();
  }
}