getStrokePaint method
Gets the border color of the series.
Implementation
@override
Paint getStrokePaint() {
strokePaint = Paint()
..style = PaintingStyle.stroke
..strokeWidth = _currentPoint!.isEmpty == true
? _series.emptyPointSettings.borderWidth
: _strokeWidth!;
_meanPaint = Paint()
..style = PaintingStyle.stroke
..strokeWidth = _currentPoint!.isEmpty == true
? _series.emptyPointSettings.borderWidth
: _strokeWidth!;
if (_series.borderGradient != null) {
strokePaint!.shader =
_series.borderGradient!.createShader(_currentPoint!.region!);
_meanPaint.shader =
_series.borderGradient!.createShader(_currentPoint!.region!);
} else {
strokePaint!.color = _currentPoint!.isEmpty == true
? _series.emptyPointSettings.borderColor
: _strokeColor!;
_meanPaint.color = _currentPoint!.isEmpty == true
? _series.emptyPointSettings.borderColor
: _strokeColor!;
}
_series.borderWidth == 0
? strokePaint!.color = Colors.transparent
: strokePaint!.color;
_defaultStrokeColor = strokePaint;
return strokePaint!;
}