Carousel constructor

Carousel({
  1. Key? key,
  2. required List<Widget> items,
  3. required double aspectRatio,
  4. Widget? indicator,
  5. Color? indicatorColor,
  6. double? activeIndicatorWidth,
  7. double? indicatorWidth,
  8. double? indicatorHeight,
  9. double? activeIndicatorHeight,
  10. double? indicatorRadius,
  11. GestureTapCallback? onTap,
  12. ValueChanged<int>? onPageChange,
})

Implementation

Carousel(
    {Key? key,
    required this.items,
    required this.aspectRatio,
    this.indicator,
    this.indicatorColor,
    this.activeIndicatorWidth,
    this.indicatorWidth,
    this.indicatorHeight,
    this.activeIndicatorHeight,
    this.indicatorRadius,
    this.onTap,
    this.onPageChange})
    : super(key: key);