updateZones method

GaugeChartConfig updateZones(
  1. GaugeZoneStyle update(
    1. GaugeZoneStyle current
    )
)

Rebuilds GaugeChartConfig.zones from its current value.

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

Implementation

GaugeChartConfig updateZones(
  GaugeZoneStyle Function(GaugeZoneStyle current) update,
) => copyWith(zones: update(zones));