updateScale method

GaugeChartConfig updateScale(
  1. GaugeScaleStyle update(
    1. GaugeScaleStyle current
    )
)

Rebuilds GaugeChartConfig.scale from its current value.

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

Implementation

GaugeChartConfig updateScale(
  GaugeScaleStyle Function(GaugeScaleStyle current) update,
) => copyWith(scale: update(scale));