getStrokePaint method

  1. @override
Paint getStrokePaint()
override

Gets the stroke color of the series.

Implementation

@override
Paint getStrokePaint() {
  final Paint _strokePaint = Paint();
  if (_strokeColor != null) {
    _strokePaint.color = _pointColorMapper ?? _strokeColor!;
    _strokePaint.color =
        (_series.opacity < 1 && _strokePaint.color != Colors.transparent)
            ? _strokePaint.color.withOpacity(_series.opacity)
            : _strokePaint.color;
  }
  _strokePaint.strokeWidth = _strokeWidth!;
  _strokePaint.style = PaintingStyle.stroke;
  _strokePaint.strokeCap = StrokeCap.square;
  _defaultStrokeColor = _strokePaint;
  return _strokePaint;
}