getStrokePaint method
- @override
override
Gets the stroke color of the series.
Implementation
@override
Paint getStrokePaint() {
final Paint strokePaint = Paint();
if (series.gradient == null) {
if (strokeColor != null) {
strokePaint.color =
_pointColorMapper ?? strokeColor.withOpacity(series.opacity);
}
} else {
strokePaint.color = series.gradient.colors[0];
}
strokePaint.strokeWidth = strokeWidth;
strokePaint.style = PaintingStyle.stroke;
strokePaint.strokeCap = StrokeCap.round;
_defaultStrokeColor = strokePaint;
return strokePaint;
}