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