updateCenter method

GaugeChartConfig updateCenter(
  1. GaugeCenterConfig update(
    1. GaugeCenterConfig current
    )
)

Rebuilds GaugeChartConfig.center from its current value.

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

Implementation

GaugeChartConfig updateCenter(
  GaugeCenterConfig Function(GaugeCenterConfig current) update,
) => copyWith(center: update(center));