copyWith method

  1. @override
AreaChartConfig 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. String? areaColor,
  10. double? areaOpacity,
  11. bool? gradientArea,
  12. TitlesData? title,
  13. ChartTooltip? tooltip,
  14. ChartLegend? legend,
  15. ChartToolbox? toolbox,
  16. GridData? grid,
  17. ChartTheme? theme,
  18. ChartController? controller,
  19. ChartAxisConfig? xAxisConfig,
  20. ChartAxisConfig? yAxisConfig,
})
override

Implementation

@override
AreaChartConfig copyWith({
  List<Series>? series,
  XYAxis? xAxis,
  XYAxis? yAxis,
  double? maxY,
  bool? showBelowArea,
  double? curveSmoothness,
  bool? showDots,
  double? dotSize,
  String? areaColor,
  double? areaOpacity,
  bool? gradientArea,
  TitlesData? title,
  ChartTooltip? tooltip,
  ChartLegend? legend,
  ChartToolbox? toolbox,
  GridData? grid,
  ChartTheme? theme,
  ChartController? controller,
  ChartAxisConfig? xAxisConfig,
  ChartAxisConfig? yAxisConfig,
}) {
  return AreaChartConfig(
    series: series ?? this.series,
    xAxis: xAxis ?? this.xAxis,
    yAxis: yAxis ?? this.yAxis,
    maxY: maxY ?? this.maxY,
    curveSmoothness: curveSmoothness ?? this.curveSmoothness,
    showDots: showDots ?? this.showDots,
    dotSize: dotSize ?? this.dotSize,
    areaColor: areaColor ?? this.areaColor,
    areaOpacity: areaOpacity ?? this.areaOpacity,
    gradientArea: gradientArea ?? this.gradientArea,
    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,
  );
}