customizeSegment method

  1. @override
void customizeSegment(
  1. ChartSegment segment
)
override

To customize each segments.

Implementation

@override
void customizeSegment(ChartSegment segment) {
  updateSegmentColor(segment, borderColor, borderWidth);
  segment.fillPaint.shader = null;
  updateSegmentGradient(segment);
}