copyWith method
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,
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,
);
}