updateDataLabels method
- PieDataLabelConfig update(
- PieDataLabelConfig current
Rebuilds DonutChartSeries.dataLabels from its current value.
update receives the current PieDataLabelConfig and returns the replacement, so
nested configuration is edited without re-stating the enclosing config.
Implementation
DonutChartSeries updateDataLabels(
PieDataLabelConfig Function(PieDataLabelConfig current) update,
) => copyWith(dataLabels: update(dataLabels));