paint method

  1. @override
void paint(
  1. ChartPaintContext context,
  2. SeriesRenderSnapshot snapshot
)
override

Paints the series' visible slice, after behind-series decorations and before above-series decorations, in the order series are listed. May publish paint products on snapshot (see SeriesRenderSnapshot.geometry) for decorations painted above.

The canvas is clipped to the viewport, not to the plot rectangle, so a mark near an edge may extend into the axis label bands. Clip to ChartPaintContext.plotRect yourself if your series needs that.

Implementation

@override
void paint(ChartPaintContext context, SeriesRenderSnapshot snapshot) =>
    const LineSeriesPainter().paint(context, snapshot, this);