copyWith method

BarChartConfig copyWith({
  1. List<Series>? series,
  2. XYAxis? xAxis,
  3. XYAxis? yAxis,
  4. double? maxY,
  5. BarChartAlignment? alignment,
  6. double? barWidth,
  7. double? barBorderRadiusValue,
  8. bool? isStacked,
  9. bool? isHorizontal,
  10. bool? isMultiBar,
  11. TitlesData? title,
  12. ChartTooltip? tooltip,
  13. ChartLegend? legend,
  14. ChartToolbox? toolbox,
  15. GridData? grid,
  16. ChartTheme? theme,
  17. ChartController? controller,
  18. ChartAxisConfig? xAxisConfig,
  19. 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,
  );
}