paintActiveIndicators method

  1. @override
dynamic paintActiveIndicators(
  1. Canvas canvas,
  2. Size size,
  3. Paint paint,
  4. Path path,
)
override

Implementation

@override
paintActiveIndicators(Canvas canvas, Size size, Paint paint, Path path) {
  final activeOffset1 = Offset(netDragPercent * lineWidth * pagesLength, 0.0);
  final activeOffset2 = Offset(activeOffset1.dx + lineWidth, 0.0);
  canvas.drawLine(activeOffset1, activeOffset2, paint);
}