CNPageControl constructor
const
CNPageControl({
- Key? key,
- required int numberOfPages,
- int currentPage = 0,
- ValueChanged<
int> ? onChanged, - PageController? controller,
- Color? pageIndicatorColor,
- Color? currentPageIndicatorColor,
- CNPageControlBackgroundStyle backgroundStyle = CNPageControlBackgroundStyle.automatic,
- bool hidesForSinglePage = false,
- bool allowsContinuousInteraction = true,
- bool enabled = true,
- double height = 28.0,
- bool autoHideOnModal = true,
- String? semanticLabel,
Creates a Cupertino-native page control.
Implementation
const CNPageControl({
super.key,
required this.numberOfPages,
this.currentPage = 0,
this.onChanged,
this.controller,
this.pageIndicatorColor,
this.currentPageIndicatorColor,
this.backgroundStyle = CNPageControlBackgroundStyle.automatic,
this.hidesForSinglePage = false,
this.allowsContinuousInteraction = true,
this.enabled = true,
this.height = 28.0,
this.autoHideOnModal = true,
this.semanticLabel,
}) : assert(numberOfPages >= 0, 'CNPageControl.numberOfPages is negative');