copyWith method
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,
);
}