CarouselWidget constructor

const CarouselWidget({
  1. Key? key,
  2. required List<Widget> items,
  3. double height = 200,
  4. bool autoPlay = false,
  5. Duration autoPlayInterval = const Duration(seconds: 3),
  6. bool showIndicators = true,
  7. ValueChanged<int>? onPageChanged,
})

Implementation

const CarouselWidget({
  super.key,
  required this.items,
  this.height = 200,
  this.autoPlay = false,
  this.autoPlayInterval = const Duration(seconds: 3),
  this.showIndicators = true,
  this.onPageChanged,
});