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