paint method

  1. @override
void paint(
  1. ChartCanvas canvas,
  2. Rectangle<num> bounds, {
  3. List<int>? dashPattern,
  4. Color? fillColor,
  5. FillPatternType? fillPattern,
  6. Color? strokeColor,
  7. double? strokeWidthPx,
})
override

Implementation

@override
void paint(ChartCanvas canvas, Rectangle<num> bounds,
    {List<int>? dashPattern,
    Color? fillColor,
    FillPatternType? fillPattern,
    Color? strokeColor,
    double? strokeWidthPx}) {
  canvas.drawRRect(bounds,
      fill: getSolidFillColor(fillColor),
      fillPattern: fillPattern,
      stroke: strokeColor,
      radius: radius,
      roundTopLeft: true,
      roundTopRight: true,
      roundBottomRight: true,
      roundBottomLeft: true);
}