BsCarousel constructor
const
BsCarousel({
- Key? key,
- required List<
BsCarouselItem> items, - bool autoplay = true,
- Duration defaultInterval = const Duration(seconds: 5),
- bool controls = true,
- bool indicators = true,
- bool fade = false,
- bool pauseOnHover = true,
- bool touch = true,
- bool dark = false,
- double? height,
- double? aspectRatio,
- int initialIndex = 0,
- 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,
});