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