getStrokePaint method
Gets the border color of the series.
Implementation
@override
Paint getStrokePaint() {
final SegmentProperties segmentProperties =
SegmentHelper.getSegmentProperties(this);
final Paint strokePaint = Paint();
if (segmentProperties.strokeColor != null) {
strokePaint
..color = segmentProperties.series.borderColor
..style = PaintingStyle.stroke
..strokeWidth = segmentProperties.series.borderWidth;
segmentProperties.series.borderWidth == 0
? strokePaint.color = Colors.transparent
: strokePaint.color;
}
strokePaint.strokeCap = StrokeCap.round;
segmentProperties.defaultStrokeColor = strokePaint;
return strokePaint;
}