AdvancedCarousel constructor

const AdvancedCarousel({
  1. Key? key,
  2. List<Widget>? items,
  3. Future<List<Widget>> itemLoader()?,
  4. double height = 200.0,
  5. bool autoPlay = true,
  6. Duration autoPlayInterval = const Duration(seconds: 3),
  7. bool infiniteScroll = true,
  8. Curve transitionCurve = Curves.easeInOut,
  9. Duration transitionDuration = const Duration(milliseconds: 500),
  10. bool showIndicator = true,
  11. Color indicatorColor = Colors.white,
  12. double indicatorSize = 8.0,
  13. Alignment indicatorAlignment = Alignment.bottomCenter,
  14. BoxShape indicatorShape = BoxShape.circle,
  15. bool pauseOnHover = false,
  16. ValueChanged<int>? onPageChanged,
  17. IndexedWidgetBuilder? itemBuilder,
  18. int itemCount = 0,
  19. TransitionEffect transitionEffect = TransitionEffect.slide,
  20. bool enableLazyLoading = true,
  21. bool accessibilityEnabled = true,
  22. dynamic onItemChanged(
    1. int
    )?,
})

Implementation

const AdvancedCarousel({
  Key? key,
  this.items,
  this.itemLoader,
  this.height = 200.0,
  this.autoPlay = true,
  this.autoPlayInterval = const Duration(seconds: 3),
  this.infiniteScroll = true,
  this.transitionCurve = Curves.easeInOut,
  this.transitionDuration = const Duration(milliseconds: 500),
  this.showIndicator = true,
  this.indicatorColor = Colors.white,
  this.indicatorSize = 8.0,
  this.indicatorAlignment = Alignment.bottomCenter,
  this.indicatorShape = BoxShape.circle,
  this.pauseOnHover = false,
  this.onPageChanged,
  this.itemBuilder,
  this.itemCount = 0,
  this.transitionEffect = TransitionEffect.slide,
  this.enableLazyLoading = true,
  this.accessibilityEnabled = true,
  this.onItemChanged,
})  : assert(items != null || itemLoader != null || itemBuilder != null),
      super(key: key);