bandFill method
Filled band fill for stacked areas (more body than a line fill).
Implementation
Paint bandFill(Rect rect, Color color, {double opacity = 1}) {
switch (style) {
case ChartStyle.gradient:
return _vertical(rect, color, 0.85 * opacity, 0.45 * opacity);
case ChartStyle.flat:
return Paint()
..color = color.withValues(alpha: 0.75 * opacity)
..isAntiAlias = true;
case ChartStyle.glass:
return _vertical(rect, lighten(color, 0.06), 0.5 * opacity,
0.28 * opacity);
}
}