NiceCarousel constructor

const NiceCarousel({
  1. Key? key,
  2. required List<NiceCarouselSlide> slides,
  3. double height = 200,
  4. bool autoPlay = false,
  5. Duration autoPlayInterval = const Duration(seconds: 4),
  6. Duration animationDuration = const Duration(milliseconds: 300),
  7. bool showIndicators = true,
  8. bool showArrows = true,
  9. double viewportFraction = 1.0,
  10. BorderRadius? borderRadius,
})

Implementation

const NiceCarousel({
  super.key,
  required this.slides,
  this.height = 200,
  this.autoPlay = false,
  this.autoPlayInterval = const Duration(seconds: 4),
  this.animationDuration = const Duration(milliseconds: 300),
  this.showIndicators = true,
  this.showArrows = true,
  this.viewportFraction = 1.0,
  this.borderRadius,
});