drawVerticalAxisLine method

  1. @protected
void drawVerticalAxisLine(
  1. PaintingContext context,
  2. Offset offset,
  3. List<double>? dashArray,
  4. Paint paint,
)

Override this method to customize the vertical line drawing and styling.

Implementation

@protected
void drawVerticalAxisLine(PaintingContext context, Offset offset,
    List<double>? dashArray, Paint paint) {
  if (parentBox == null) {
    return;
  }

  final Rect plotAreaBounds = parentBox!.paintBounds;
  final Offset start = Offset(offset.dx, plotAreaBounds.top);
  final Offset end = Offset(offset.dx, plotAreaBounds.bottom);
  drawDashes(context.canvas, dashArray, paint, start: start, end: end);
}