InlineCarouselConfig constructor
const
InlineCarouselConfig({
- required String slotKey,
- required List<
CarouselItem> items, - int height = 180,
- bool autoPlay = true,
- int autoPlayInterval = 3000,
- int animationDuration = 700,
- bool infiniteScroll = true,
- double viewportFraction = 0.88,
- double itemSpacing = 12,
- double cornerRadius = 12,
- CarouselIndicatorConfig indicator = const CarouselIndicatorConfig(),
Implementation
const InlineCarouselConfig({
required this.slotKey,
required this.items,
this.height = 180,
this.autoPlay = true,
this.autoPlayInterval = 3000,
this.animationDuration = 700,
this.infiniteScroll = true,
this.viewportFraction = 0.88,
this.itemSpacing = 12,
this.cornerRadius = 12,
this.indicator = const CarouselIndicatorConfig(),
});