updateValueFormat method

BarRaceConfig updateValueFormat(
  1. BarRaceValueFormat update(
    1. BarRaceValueFormat current
    )
)

Rebuilds BarRaceConfig.valueFormat from its current value.

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

Implementation

BarRaceConfig updateValueFormat(
  BarRaceValueFormat Function(BarRaceValueFormat current) update,
) => copyWith(valueFormat: update(valueFormat));