paintIndicator method
Implementation
void paintIndicator(Canvas canvas, Size size) {
final Paint 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,
);
}