getStrokePaint method
Gets the border color of the series.
Implementation
@override
Paint getStrokePaint() {
_setSegmentProperties();
final SegmentProperties bubbleSegmentProperties = _segmentProperties;
final Paint strokePaint = Paint()
..style = PaintingStyle.stroke
..strokeWidth = (bubbleSegmentProperties.currentPoint!.isEmpty ?? false)
? bubbleSegmentProperties.series.emptyPointSettings.borderWidth
: bubbleSegmentProperties.strokeWidth!;
bubbleSegmentProperties.series.borderGradient != null
? strokePaint.shader = bubbleSegmentProperties.series.borderGradient!
.createShader(bubbleSegmentProperties.currentPoint!.region!)
: strokePaint.color =
(bubbleSegmentProperties.currentPoint!.isEmpty ?? false)
? bubbleSegmentProperties.series.emptyPointSettings.borderColor
: bubbleSegmentProperties.strokeColor!;
bubbleSegmentProperties.series.borderWidth == 0
? strokePaint.color = Colors.transparent
: strokePaint.color;
bubbleSegmentProperties.defaultStrokeColor = strokePaint;
return strokePaint;
}