drawVerticalLineMarker method

void drawVerticalLineMarker(
  1. Canvas canvas,
  2. double x,
  3. double y,
  4. DataMarkerStyle style,
)

Implementation

void drawVerticalLineMarker(Canvas canvas, double x, double y, DataMarkerStyle style) {
  final paint = Paint()
    ..color = style.borderColor
    ..strokeWidth = style.borderWidth
    ..style = PaintingStyle.stroke;

  canvas.drawLine(
    Offset(x, y - style.height / 2),
    Offset(x, y + style.height / 2),
    paint,
  );
}