S360FCarouselSlider<T> constructor

const S360FCarouselSlider<T>({
  1. required List<T> items,
  2. required Widget itemBuilder(
    1. BuildContext context,
    2. T item,
    3. int index
    ),
  3. required double height,
  4. double viewportFraction = 0.25,
  5. double itemSpacing = 8.0,
  6. bool showIndicator = true,
  7. Color? indicatorActiveColor,
  8. Color? indicatorInactiveColor,
  9. Duration animationDuration = const Duration(milliseconds: 300),
  10. ValueChanged<int>? onPageChanged,
  11. Key? key,
})

Implementation

const S360FCarouselSlider({
  required this.items,
  required this.itemBuilder,
  required this.height,
  this.viewportFraction = 0.25,
  this.itemSpacing = 8.0,
  this.showIndicator = true,
  this.indicatorActiveColor,
  this.indicatorInactiveColor,
  this.animationDuration = const Duration(milliseconds: 300),
  this.onPageChanged,
  super.key,
});