CarouselSlider.builder constructor

CarouselSlider.builder({
  1. Key? key,
  2. required CarouselSlideBuilder? slideBuilder,
  3. SlideTransform slideTransform = const DefaultTransform(),
  4. SlideIndicator? slideIndicator,
  5. required int itemCount,
  6. double viewportFraction = 1,
  7. bool enableAutoSlider = false,
  8. Duration autoSliderDelay = const Duration(seconds: 5),
  9. Duration autoSliderTransitionTime = const Duration(seconds: 2),
  10. Curve autoSliderTransitionCurve = Curves.easeOutQuad,
  11. bool keepPage = true,
  12. ScrollPhysics scrollPhysics = const BouncingScrollPhysics(),
  13. Axis scrollDirection = Axis.horizontal,
  14. bool unlimitedMode = false,
  15. int initialPage = 0,
  16. ValueChanged<int>? onSlideChanged,
  17. VoidCallback? onSlideStart,
  18. VoidCallback? onSlideEnd,
  19. CarouselSliderController? controller,
  20. Clip clipBehavior = Clip.hardEdge,
})

Implementation

CarouselSlider.builder({
  Key? key,
  required this.slideBuilder,
  this.slideTransform = const DefaultTransform(),
  this.slideIndicator,
  required this.itemCount,
  this.viewportFraction = 1,
  this.enableAutoSlider = false,
  this.autoSliderDelay = const Duration(seconds: 5),
  this.autoSliderTransitionTime = const Duration(seconds: 2),
  this.autoSliderTransitionCurve = Curves.easeOutQuad,
  this.keepPage = true,
  this.scrollPhysics = const BouncingScrollPhysics(),
  this.scrollDirection = Axis.horizontal,
  this.unlimitedMode = false,
  this.initialPage = 0,
  this.onSlideChanged,
  this.onSlideStart,
  this.onSlideEnd,
  this.controller,
  this.clipBehavior = Clip.hardEdge,
})  : children = null,
      super(key: key);