customizeSegment method

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

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);
}