updateLabels method

RangeAreaLabelConfig updateLabels(
  1. DataPointLabelConfig update(
    1. DataPointLabelConfig current
    )
)

Rebuilds RangeAreaLabelConfig.labels from its current value.

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

Implementation

RangeAreaLabelConfig updateLabels(
  DataPointLabelConfig Function(DataPointLabelConfig current) update,
) => copyWith(labels: update(labels));