getFillPaint method
Gets the color of the series.
Implementation
@override
Paint getFillPaint() {
_setSegmentProperties();
final Paint fillPaint = Paint();
assert(_segmentProperties.series.opacity >= 0 == true,
'The opacity value of the Hilo series will not accept negative numbers.');
assert(_segmentProperties.series.opacity <= 1 == true,
'The opacity value of the Hilo series must be less than or equal to 1.');
if (_segmentProperties.color != null) {
fillPaint.color = _segmentProperties.pointColorMapper ??
_segmentProperties.color!
.withOpacity(_segmentProperties.series.opacity);
}
fillPaint.strokeWidth = _segmentProperties.strokeWidth!;
fillPaint.style = PaintingStyle.fill;
_segmentProperties.defaultFillColor = fillPaint;
return fillPaint;
}