updateDataLabels method

RadialBarStyle updateDataLabels(
  1. RadialBarDataLabelConfig update(
    1. RadialBarDataLabelConfig current
    )
)

Rebuilds RadialBarStyle.dataLabels from its current value.

update receives the current RadialBarDataLabelConfig and returns the replacement, so nested configuration is edited without re-stating the enclosing config.

Implementation

RadialBarStyle updateDataLabels(
  RadialBarDataLabelConfig Function(RadialBarDataLabelConfig current) update,
) => copyWith(dataLabels: update(dataLabels));