initPageChangeTimer method

dynamic initPageChangeTimer()

Implementation

initPageChangeTimer() {
  if (widget.autoPlayDuration != null) {
    changePageTimer = Timer.periodic(widget.autoPlayDuration!, (timer) {
      nextPage(selectedIndex);
    });
  }
}