ShapePainter constructor

ShapePainter({
  1. required double netDragPercent,
  2. required int pagesLength,
  3. required int currentPageIndex,
  4. required SlideDirection slideDirection,
  5. Paint? activePainter,
  6. Paint? inactivePainter,
  7. bool? showAllActiveIndicators,
})

Implementation

ShapePainter({
  required this.netDragPercent,
  required this.pagesLength,
  required this.currentPageIndex,
  required this.slideDirection,
  final Paint? activePainter,
  final Paint? inactivePainter,
  final bool? showAllActiveIndicators,
})  : activePainter = activePainter == null ? Paint() : activePainter,
      inactivePainter = inactivePainter == null ? Paint() : inactivePainter,
      showAllActiveIndicators =
          showAllActiveIndicators == null ? false : showAllActiveIndicators,
      activePath = Path(),
      inactivePath = Path();