drawHorizontalAxisLine method
void
drawHorizontalAxisLine(
- PaintingContext context,
- Offset offset,
- List<
double> ? dashArray, - 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);
}