copyWith method

LineChartConfig copyWith({
  1. List<Series>? series,
  2. XYAxis? xAxis,
  3. XYAxis? yAxis,
  4. double? maxY,
  5. bool? showBelowArea,
  6. double? curveSmoothness,
  7. bool? showDots,
  8. double? dotSize,
  9. TitlesData? title,
  10. ChartTooltip? tooltip,
  11. ChartLegend? legend,
  12. ChartToolbox? toolbox,
  13. GridData? grid,
  14. ChartTheme? theme,
  15. ChartController? controller,
  16. ChartAxisConfig? xAxisConfig,
  17. ChartAxisConfig? yAxisConfig,
})

Implementation

LineChartConfig copyWith({
  List<Series>? series,
  XYAxis? xAxis,
  XYAxis? yAxis,
  double? maxY,
  bool? showBelowArea,
  double? curveSmoothness,
  bool? showDots,
  double? dotSize,
  TitlesData? title,
  ChartTooltip? tooltip,
  ChartLegend? legend,
  ChartToolbox? toolbox,
  GridData? grid,
  ChartTheme? theme,
  ChartController? controller,
  ChartAxisConfig? xAxisConfig,
  ChartAxisConfig? yAxisConfig,
}) {
  return LineChartConfig(
    series: series ?? this.series,
    xAxis: xAxis ?? this.xAxis,
    yAxis: yAxis ?? this.yAxis,
    maxY: maxY ?? this.maxY,
    showBelowArea: showBelowArea ?? this.showBelowArea,
    curveSmoothness: curveSmoothness ?? this.curveSmoothness,
    showDots: showDots ?? this.showDots,
    dotSize: dotSize ?? this.dotSize,
    title: title ?? this.title,
    tooltip: tooltip ?? this.tooltip,
    legend: legend ?? this.legend,
    toolbox: toolbox ?? this.toolbox,
    grid: grid ?? this.grid,
    theme: theme ?? this.theme,
    controller: controller ?? this.controller,
    xAxisConfig: xAxisConfig ?? this.xAxisConfig,
    yAxisConfig: yAxisConfig ?? this.yAxisConfig,
  );
}