BsCarousel constructor

const BsCarousel({
  1. Key? key,
  2. required List<BsCarouselItem> items,
  3. bool autoplay = true,
  4. Duration defaultInterval = const Duration(seconds: 5),
  5. bool controls = true,
  6. bool indicators = true,
  7. bool fade = false,
  8. bool pauseOnHover = true,
  9. bool touch = true,
  10. bool dark = false,
  11. double? height,
  12. double? aspectRatio,
  13. int initialIndex = 0,
  14. ValueChanged<int>? onSlideChanged,
})

Creates a BsCarousel.

Implementation

const BsCarousel({
  super.key,
  required this.items,
  this.autoplay = true,
  this.defaultInterval = const Duration(seconds: 5),
  this.controls = true,
  this.indicators = true,
  this.fade = false,
  this.pauseOnHover = true,
  this.touch = true,
  this.dark = false,
  this.height,
  this.aspectRatio,
  this.initialIndex = 0,
  this.onSlideChanged,
});