CircularWaveIndicatorPainter constructor

CircularWaveIndicatorPainter({
  1. int? itemCount,
  2. int? currentPage,
  3. double? pageDelta,
  4. double? radius,
  5. required Color currentIndicatorColor,
  6. required Color indicatorBackgroundColor,
  7. Color? indicatorBorderColor,
  8. double borderWidth = 2,
})

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;
  }
}