Carousel constructor
Carousel({
- Key? key,
- required List<
Widget> items, - required double aspectRatio,
- Widget? indicator,
- Color? indicatorColor,
- double? activeIndicatorWidth,
- double? indicatorWidth,
- double? indicatorHeight,
- double? activeIndicatorHeight,
- double? indicatorRadius,
- GestureTapCallback? onTap,
- 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);