copyWith method
PieChartData
copyWith({
- List<
PieChartSectionData> ? sections, - double? centerSpaceRadius,
- Color? centerSpaceColor,
- double? sectionsSpace,
- double? startDegreeOffset,
- PieTouchData? pieTouchData,
- FlBorderData? borderData,
Copies current PieChartData to a new PieChartData, and replaces provided values.
Implementation
PieChartData copyWith({
List<PieChartSectionData>? sections,
double? centerSpaceRadius,
Color? centerSpaceColor,
double? sectionsSpace,
double? startDegreeOffset,
PieTouchData? pieTouchData,
FlBorderData? borderData,
}) {
return PieChartData(
sections: sections ?? this.sections,
centerSpaceRadius: centerSpaceRadius ?? this.centerSpaceRadius,
centerSpaceColor: centerSpaceColor ?? this.centerSpaceColor,
sectionsSpace: sectionsSpace ?? this.sectionsSpace,
startDegreeOffset: startDegreeOffset ?? this.startDegreeOffset,
pieTouchData: pieTouchData ?? this.pieTouchData,
borderData: borderData ?? this.borderData,
);
}