effectiveColor method

  1. @override
  2. @nonVirtual
Color effectiveColor(
  1. int segmentIndex
)
override

Implementation

@override
@nonVirtual
Color effectiveColor(int segmentIndex) {
  Color? pointColor;
  if (pointColorMapper != null) {
    pointColor = pointColors[segmentIndex];
  }
  return pointColor ?? palette[segmentIndex % palette.length];
}