copyWith method
Implementation
ChartSeries copyWith({
String? id,
String? name,
List<ChartPoint>? points,
SeriesStyle? style,
}) {
return ChartSeries(
id: id ?? this.id,
name: name ?? this.name,
points: points ?? this.points,
style: style ?? this.style,
);
}