customizeSegment method
To customize each segments.
Implementation
@override
void customizeSegment(ChartSegment segment) {
final SegmentProperties bar100SegmentProperties =
SegmentHelper.getSegmentProperties(segment);
bar100SegmentProperties.color =
bar100SegmentProperties.currentPoint!.pointColorMapper ??
SeriesHelper.getSeriesRendererDetails(
bar100SegmentProperties.seriesRenderer)
.seriesColor;
bar100SegmentProperties.strokeColor =
bar100SegmentProperties.series.borderColor;
bar100SegmentProperties.strokeWidth =
bar100SegmentProperties.series.borderWidth;
}