copyWith method
ChartConfig
copyWith({
- List<
ChartSeries> ? series, - ChartViewport? viewport,
- ChartTheme? theme,
- ChartTemplateStyle? template,
- bool? showGrid,
- bool? showAxis,
- String? xAxisTitle,
- String? yAxisTitle,
- String? title,
- String? subtitle,
- bool? showLegend,
- LegendPosition? legendPosition,
- bool? showBorder,
- double? barBorderRadius,
- bool? animate,
- Duration? animationDuration,
- double? curveTension,
- String? semanticLabel,
Implementation
ChartConfig copyWith({
List<ChartSeries>? series,
ChartViewport? viewport,
ChartTheme? theme,
ChartTemplateStyle? template,
bool? showGrid,
bool? showAxis,
String? xAxisTitle,
String? yAxisTitle,
String? title,
String? subtitle,
bool? showLegend,
LegendPosition? legendPosition,
bool? showBorder,
double? barBorderRadius,
bool? animate,
Duration? animationDuration,
double? curveTension,
String? semanticLabel,
}) {
return ChartConfig(
series: series ?? this.series,
viewport: viewport ?? this.viewport,
theme: theme ?? this.theme,
template: template ?? this.template,
showGrid: showGrid ?? this.showGrid,
showAxis: showAxis ?? this.showAxis,
xAxisTitle: xAxisTitle ?? this.xAxisTitle,
yAxisTitle: yAxisTitle ?? this.yAxisTitle,
title: title ?? this.title,
subtitle: subtitle ?? this.subtitle,
showLegend: showLegend ?? this.showLegend,
legendPosition: legendPosition ?? this.legendPosition,
showBorder: showBorder ?? this.showBorder,
barBorderRadius: barBorderRadius ?? this.barBorderRadius,
animate: animate ?? this.animate,
animationDuration: animationDuration ?? this.animationDuration,
curveTension: curveTension ?? this.curveTension,
semanticLabel: semanticLabel ?? this.semanticLabel,
);
}