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