paintActiveIndicators method
dynamic
paintActiveIndicators()
override
Implementation
@override
paintActiveIndicators(Canvas canvas, Size size, Paint paint, Path path) {
final Offset offset1 =
Offset(netDragPercent * pagesLength * (radius + space), 0.0);
canvas.drawCircle(offset1, radius, paint);
if (showAllActiveIndicators) {
Offset offset2 = Offset.zero;
for (int i = 0; i <= currentPageIndex; i++) {
canvas.drawCircle(offset2, radius, paint);
offset2 = Offset(offset2.dx + radius + space, 0.0);
}
}
}