updateDataLabels method

PieChartSeries updateDataLabels(
  1. PieDataLabelConfig update(
    1. PieDataLabelConfig current
    )
)

Rebuilds PieChartSeries.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

PieChartSeries updateDataLabels(
  PieDataLabelConfig Function(PieDataLabelConfig current) update,
) => copyWith(dataLabels: update(dataLabels));