content: import 'package:carousel_slider_plus/carousel_slider_plus.dart';
  import 'package:flutter/material.dart';
  
  class CarouselState {
    /// The [CarouselOptions] to create this state
    CarouselOptions options;
  
    /// [pageController] is created using the properties passed to the constructor
    /// and can be used to control the [PageView] it is passed to.
    late PageController pageController;
  
    /// dispose the [pageController] when the state is disposed
    void dispose() {
      pageController.dispose();
    }
  
    /// The actual index of the [PageView].
    ///
    /// This value can be ignored unless you know the carousel will be scrolled
    /// backwards more then 10000 pages.
    /// Defaults to 10000 to simulate infinite backwards scrolling.
    int realPage = 10000;
  
    /// The initial index of the [PageView] on [CarouselSlider] init.
    ///
    int initialPage = 0;
  
    /// The widgets count that should be shown at carousel
    int itemCount;
  
    /// Will be called when using pageController to go to next page or
    /// previous page. It will clear the autoPlay timer.
    /// Internal use only
    Function onResetTimer;
  
    /// Will be called when using pageController to go to next page or
    /// previous page. It will restart the autoPlay timer.
    /// Internal use only
    Function onResumeTimer;
  
    /// The callback to set the Reason Carousel changed
    Function(CarouselPageChangedReason) changeMode;
  
    CarouselState(
      this.options,
      this.onResetTimer,
      this.onResumeTimer,
      this.changeMode,
      this.itemCount,
    );
  }
  