onPaint method

  1. @override
void onPaint(
  1. Canvas canvas
)
override

Draws segment in series bounds.

Implementation

@override
void onPaint(Canvas canvas) {
  final SegmentProperties segmentProperties =
      SegmentHelper.getSegmentProperties(this);
  drawStackedAreaPath(segmentProperties.path, segmentProperties.strokePath!,
      segmentProperties.seriesRenderer, canvas, fillPaint!, strokePaint!);
}