drawHorizontalAxisLine method

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

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

Implementation

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

  final Rect plotAreaBounds = parentBox!.paintBounds;
  final Offset start = Offset(plotAreaBounds.left, offset.dy);
  final Offset end = Offset(plotAreaBounds.right, offset.dy);
  drawDashes(context.canvas, dashArray, paint, start: start, end: end);
}