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