copyWith method

PieChartConfig copyWith({
  1. List<Series>? series,
  2. ChartType? chartType,
  3. double? centerSpaceRadius,
  4. double? sectionsSpace,
  5. bool? enableSections,
  6. double? startDegreeOffset,
  7. bool? donut,
  8. TitlesData? title,
  9. ChartTooltip? tooltip,
  10. ChartLegend? legend,
  11. ChartToolbox? toolbox,
  12. GridData? grid,
  13. ChartTheme? theme,
  14. ChartController? controller,
  15. ChartAxisConfig? xAxisConfig,
  16. ChartAxisConfig? yAxisConfig,
})

Implementation

PieChartConfig copyWith({
  List<Series>? series,
  ChartType? chartType,
  double? centerSpaceRadius,
  double? sectionsSpace,
  bool? enableSections,
  double? startDegreeOffset,
  bool? donut,
  TitlesData? title,
  ChartTooltip? tooltip,
  ChartLegend? legend,
  ChartToolbox? toolbox,
  GridData? grid,
  ChartTheme? theme,
  ChartController? controller,
  ChartAxisConfig? xAxisConfig,
  ChartAxisConfig? yAxisConfig,
}) {
  return PieChartConfig(
    series: series ?? this.series,
    chartType: chartType ?? type,
    centerSpaceRadius: centerSpaceRadius ?? this.centerSpaceRadius,
    sectionsSpace: sectionsSpace ?? this.sectionsSpace,
    enableSections: enableSections ?? this.enableSections,
    startDegreeOffset: startDegreeOffset ?? this.startDegreeOffset,
    donut: donut ?? this.donut,
    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,
  );
}