copyWith method

ChartProps copyWith({
  1. List<ChartPointProps>? points,
  2. String? title,
  3. String? description,
  4. String? color,
})

Implementation

ChartProps copyWith({
  List<ChartPointProps>? points,
  String? title,
  String? description,
  String? color,
}) {
  return ChartProps(
    points: points ?? this.points,
    title: title ?? this.title,
    description: description ?? this.description,
    color: color ?? this.color,
  );
}