updateTotalFormat method

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

Rebuilds BarRaceConfig.totalFormat 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 updateTotalFormat(
  BarRaceValueFormat Function(BarRaceValueFormat current) update,
) => copyWith(totalFormat: update(totalFormat));