copyWith method

SeriesStyle copyWith({
  1. Color? color,
  2. double? strokeWidth,
  3. Color? fillColor,
  4. Gradient? gradient,
  5. bool? showMarkers,
  6. double? markerRadius,
  7. double? opacity,
})

Implementation

SeriesStyle copyWith({
  Color? color,
  double? strokeWidth,
  Color? fillColor,
  Gradient? gradient,
  bool? showMarkers,
  double? markerRadius,
  double? opacity,
}) {
  return SeriesStyle(
    color: color ?? this.color,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    fillColor: fillColor ?? this.fillColor,
    gradient: gradient ?? this.gradient,
    showMarkers: showMarkers ?? this.showMarkers,
    markerRadius: markerRadius ?? this.markerRadius,
    opacity: opacity ?? this.opacity,
  );
}