copyWith method
BarChartConfig
copyWith({
- List<
Series> ? series, - XYAxis? xAxis,
- XYAxis? yAxis,
- double? maxY,
- BarChartAlignment? alignment,
- double? barWidth,
- double? barBorderRadiusValue,
- bool? isStacked,
- bool? isHorizontal,
- bool? isMultiBar,
- TitlesData? title,
- ChartTooltip? tooltip,
- ChartLegend? legend,
- ChartToolbox? toolbox,
- GridData? grid,
- ChartTheme? theme,
- ChartController? controller,
- ChartAxisConfig? xAxisConfig,
- ChartAxisConfig? yAxisConfig,
Implementation
BarChartConfig copyWith({
List<Series>? series,
XYAxis? xAxis,
XYAxis? yAxis,
double? maxY,
BarChartAlignment? alignment,
double? barWidth,
double? barBorderRadiusValue,
bool? isStacked,
bool? isHorizontal,
bool? isMultiBar,
TitlesData? title,
ChartTooltip? tooltip,
ChartLegend? legend,
ChartToolbox? toolbox,
GridData? grid,
ChartTheme? theme,
ChartController? controller,
ChartAxisConfig? xAxisConfig,
ChartAxisConfig? yAxisConfig,
}) {
return BarChartConfig(
series: series ?? this.series,
xAxis: xAxis ?? this.xAxis,
yAxis: yAxis ?? this.yAxis,
maxY: maxY ?? this.maxY,
alignment: alignment ?? this.alignment,
barWidth: barWidth ?? this.barWidth,
barBorderRadiusValue: barBorderRadiusValue ?? this.barBorderRadiusValue,
isStacked: isStacked ?? this.isStacked,
isHorizontal: isHorizontal ?? this.isHorizontal,
isMultiBar: isMultiBar ?? this.isMultiBar,
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,
);
}