paintIndicator method

void paintIndicator(
  1. Canvas canvas,
  2. Size size
)

Implementation

void paintIndicator(Canvas canvas, Size size) {
  final progress = Paint()
    ..color = style.positionLineColor
    ..strokeWidth = style.positionLineWidth;

  // DRAW VIDEO INDICATOR
  canvas.drawRRect(
    RRect.fromRectAndRadius(
      Rect.fromPoints(
        Offset(position - style.positionLineWidth / 2, -style.lineWidth * 2),
        Offset(
          position + style.positionLineWidth / 2,
          size.height + style.lineWidth * 2,
        ),
      ),
      Radius.circular(style.positionLineWidth),
    ),
    progress,
  );
}