getStrokePaint method

  1. @override
Paint getStrokePaint ()
override

Gets the border color of the series.

Implementation

@override
Paint getStrokePaint() {
  if (strokeColor != null) {
    strokePaint = Paint()
      ..color = _currentPoint.isEmpty == true
          ? series.emptyPointSettings.borderColor
          : strokeColor
      ..style = PaintingStyle.stroke
      ..strokeWidth = _currentPoint.isEmpty == true
          ? series.emptyPointSettings.borderWidth
          : strokeWidth;
    _defaultStrokeColor = strokePaint;
  }
  series.borderWidth == 0
      ? strokePaint.color = Colors.transparent
      : strokePaint.color;
  strokePaint.color = strokePaint.color == Colors.transparent
      ? strokePaint.color
      : strokePaint.color.withOpacity(series.opacity);
  return strokePaint;
}