getStrokePaint method
- @override
override
Gets the border color of the series.
Implementation
@override
Paint getStrokePaint() {
final Paint strokePaint = Paint()
..color = _currentPoint.isEmpty == true
? series.emptyPointSettings.borderColor
: series.markerSettings.isVisible
? series.markerSettings.borderColor ?? series._seriesColor
: strokeColor
..style = PaintingStyle.stroke
..strokeWidth = _currentPoint.isEmpty == true
? series.emptyPointSettings.borderWidth
: strokeWidth;
series.borderWidth == 0
? strokePaint.color = Colors.transparent
: strokePaint.color;
strokePaint.color = strokePaint.color == Colors.transparent
? strokePaint.color
: strokePaint.color.withOpacity(series.opacity);
_defaultStrokeColor = strokePaint;
return strokePaint;
}