copyWith method

ChartVisibilityOptions copyWith({
  1. bool? showGrid,
  2. bool? showLegend,
  3. bool? showValues,
  4. bool? showLabels,
  5. bool? showAxisLabels,
})

Implementation

ChartVisibilityOptions copyWith({
  bool? showGrid,
  bool? showLegend,
  bool? showValues,
  bool? showLabels,
  bool? showAxisLabels,
}) {
  return ChartVisibilityOptions(
    showGrid: showGrid ?? this.showGrid,
    showLegend: showLegend ?? this.showLegend,
    showValues: showValues ?? this.showValues,
    showLabels: showLabels ?? this.showLabels,
    showAxisLabels: showAxisLabels ?? this.showAxisLabels,
  );
}