getFillPaint method

  1. @override
Paint getFillPaint()
override

Gets the color of the series.

Implementation

@override
Paint getFillPaint() {
  final Paint fillPaint = Paint();
  assert(_series.opacity >= 0,
      'The opacity value of the Hilo open-close series should be greater than or equal to 0.');
  assert(_series.opacity <= 1,
      'The opacity value of the Hilo open-close series should be less than or equal to 1.');
  if (_color != null) {
    fillPaint.color =
        _pointColorMapper ?? _color!.withOpacity(_series.opacity);
  }
  fillPaint.strokeWidth = _strokeWidth!;
  fillPaint.style = PaintingStyle.fill;
  _defaultFillColor = fillPaint;
  return fillPaint;
}