areaFill method
Area fill under a line (line / sparkline / stacked area).
Implementation
Paint areaFill(Rect rect, Color color, {double opacity = 1}) {
switch (style) {
case ChartStyle.gradient:
return _vertical(rect, color, 0.32 * opacity, 0.0);
case ChartStyle.flat:
return Paint()
..color = color.withValues(alpha: 0.16 * opacity)
..isAntiAlias = true;
case ChartStyle.glass:
return _vertical(rect, lighten(color, 0.06), 0.28 * opacity,
0.12 * opacity);
}
}