CirclePageIndicator constructor
CirclePageIndicator({
- Key? key,
- required ValueNotifier<
int> currentPageNotifier, - required int itemCount,
- ValueChanged<
int> ? onPageSelected, - double size = _defaultSize,
- double dotSpacing = _defaultSpacing,
- Color? dotColor,
- Color? selectedDotColor,
- double selectedSize = _defaultSelectedSize,
- double borderWidth = 0,
- Color? borderColor,
- Color? selectedBorderColor,
Implementation
CirclePageIndicator({
Key? key,
required this.currentPageNotifier,
required this.itemCount,
this.onPageSelected,
this.size = _defaultSize,
this.dotSpacing = _defaultSpacing,
Color? dotColor,
Color? selectedDotColor,
this.selectedSize = _defaultSelectedSize,
this.borderWidth = 0,
this.borderColor,
this.selectedBorderColor,
}) : this.dotColor = dotColor ??
((selectedDotColor?.withAlpha(150)) ?? _defaultDotColor),
this.selectedDotColor = selectedDotColor ?? _defaultSelectedDotColor,
assert(borderWidth < size,
'Border width cannot be bigger than dot size, duh!'),
super(key: key);