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 StackedArea100Segment<T, D> stackedArea100Segment =
      segment as StackedArea100Segment<T, D>;
  updateSegmentColor(stackedArea100Segment, borderColor, borderWidth);
  updateSegmentGradient(stackedArea100Segment,
      gradientBounds: stackedArea100Segment._fillPath.getBounds(),
      gradient: gradient,
      borderGradient: borderGradient);
}