defaultGetPointColor function
Implementation
Color defaultGetPointColor(
Color? barColor, Gradient? barGradient, double percentage) {
if (barGradient != null && barGradient is LinearGradient) {
return lerpGradient(
barGradient.colors, barGradient.getSafeColorStops(), percentage / 100);
}
return barGradient?.colors.first ?? barColor ?? Colors.blueGrey;
}