customizeSegment method
To customize each segments.
Implementation
@override
void customizeSegment(ChartSegment segment) {
final BoxAndWhiskerSegment<T, D> boxAndWhiskerSegment =
segment as BoxAndWhiskerSegment<T, D>;
final Color? customBorderColor =
borderColor == Colors.transparent || borderColor == null
? Colors.black
: borderColor;
updateSegmentColor(boxAndWhiskerSegment, customBorderColor, borderWidth);
updateSegmentGradient(boxAndWhiskerSegment,
gradientBounds: boxAndWhiskerSegment.segmentRect,
gradient: gradient,
borderGradient: borderGradient);
}