YaruPageIndicator.builder constructor
YaruPageIndicator.builder({
- Key? key,
- required int length,
- required int page,
- ValueChanged<
int> ? onTap, - YaruPageIndicatorItemBuilder<
Size> ? itemSizeBuilder, - YaruPageIndicatorItemBuilder<
Widget> ? itemBuilder, - MouseCursor? mouseCursor,
- YaruPageIndicatorTextBuilder? textBuilder,
- TextStyle? textStyle,
- YaruPageIndicatorLayoutDelegate? layoutDelegate,
- Duration? animationDuration,
- Curve? animationCurve,
Create a YaruPageIndicator.
Implementation
// ignore: prefer_const_constructors_in_immutables
YaruPageIndicator.builder({
super.key,
required this.length,
required this.page,
this.onTap,
this.itemSizeBuilder,
this.itemBuilder,
this.mouseCursor,
this.textBuilder,
this.textStyle,
this.layoutDelegate,
this.animationDuration,
this.animationCurve,
}) : assert(page >= 0 && page <= length - 1);