effectiveColor method
Implementation
Color effectiveColor(int segmentIndex) {
Color? pointColor;
if (pointColorMapper != null &&
pointColors.isNotEmpty &&
pointColors.length > segmentIndex) {
pointColor = pointColors[segmentIndex];
}
return pointColor ?? color ?? paletteColor;
}