paint method
void
paint(
- ChartCanvas canvas,
- Point<
double> p1, - double radius, {
- required Point<
double> p2, - Color? fillColor,
- Color? strokeColor,
- double? strokeWidthPx,
override
Implementation
@override
void paint(ChartCanvas canvas, Point<double> p1, double radius,
{required Point<double> p2,
Color? fillColor,
Color? strokeColor,
double? strokeWidthPx}) {
final adjustedP1 = Point<double>(p1.x, p1.y);
final adjustedP2 = Point<double>(p2.x, p2.y);
canvas.drawLine(
points: [adjustedP1, adjustedP2],
stroke: strokeColor,
roundEndCaps: false,
strokeWidthPx: radius * 2);
}