getFillPaint method
Gets the color of the series.
Implementation
@override
Paint getFillPaint() {
fillPaint = Paint()
..color = _currentPoint!.isEmpty != null && _currentPoint!.isEmpty!
? _series.emptyPointSettings.color
: (_currentPoint!.pointColorMapper ?? _color!);
assert(_series.opacity >= 0,
'The opacity value of the candle series should be greater than or equal to 0.');
assert(_series.opacity <= 1,
'The opacity value of the candle series should be less than or equal to 1.');
fillPaint!.color =
(_series.opacity < 1 && fillPaint!.color != Colors.transparent)
? fillPaint!.color.withOpacity(_series.opacity)
: fillPaint!.color;
fillPaint!.strokeWidth = _strokeWidth!;
fillPaint!.style = _isSolid ? PaintingStyle.fill : PaintingStyle.stroke;
_defaultFillColor = fillPaint;
return fillPaint!;
}