customizeSegment method

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

Changes the series color, border color, and border width.

Implementation

@override
void customizeSegment(ChartSegment segment) {
  final StackedBar100Segment<T, D> stackedBar100Segment =
      segment as StackedBar100Segment<T, D>;
  updateSegmentColor(stackedBar100Segment, borderColor, borderWidth);
  updateSegmentGradient(stackedBar100Segment,
      gradientBounds: stackedBar100Segment.segmentRect?.outerRect,
      gradient: gradient,
      borderGradient: borderGradient);
}