drawDataLabel method Null safety

  1. @override
void drawDataLabel(
  1. int index,
  2. Canvas canvas,
  3. String dataLabel,
  4. double pointX,
  5. double pointY,
  6. int angle,
  7. TextStyle style
)

Draws data label text of the appropriate data point in a series.

Implementation

@override
void drawDataLabel(int index, Canvas canvas, String dataLabel, double pointX,
        double pointY, int angle, TextStyle style) =>
    _drawText(canvas, dataLabel, Offset(pointX, pointY), style, angle);