updateCenterContent method

DonutChartSeries updateCenterContent(
  1. DonutCenterContent update(
    1. DonutCenterContent current
    )
)

Rebuilds DonutChartSeries.centerContent from its current value.

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

Implementation

DonutChartSeries updateCenterContent(
  DonutCenterContent Function(DonutCenterContent current) update,
) => copyWith(centerContent: update(centerContent));