CircularWaveIndicatorPainter constructor
CircularWaveIndicatorPainter({})
Implementation
CircularWaveIndicatorPainter({
this.itemCount,
this.currentPage,
this.pageDelta,
this.radius,
required Color currentIndicatorColor,
required Color indicatorBackgroundColor,
this.indicatorBorderColor,
double borderWidth = 2,
}) {
indicatorPaint.color = indicatorBackgroundColor;
indicatorPaint.style = PaintingStyle.fill;
indicatorPaint.isAntiAlias = true;
currentIndicatorPaint.color = currentIndicatorColor;
currentIndicatorPaint.style = PaintingStyle.fill;
currentIndicatorPaint.isAntiAlias = true;
if (indicatorBorderColor != null) {
borderIndicatorPaint.color = indicatorBorderColor!;
borderIndicatorPaint.style = PaintingStyle.stroke;
borderIndicatorPaint.strokeWidth = borderWidth;
borderIndicatorPaint.isAntiAlias = true;
}
}