updatePeriodFormat method

BarRaceConfig updatePeriodFormat(
  1. BarRacePeriodFormat update(
    1. BarRacePeriodFormat current
    )
)

Rebuilds BarRaceConfig.periodFormat from its current value.

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

Implementation

BarRaceConfig updatePeriodFormat(
  BarRacePeriodFormat Function(BarRacePeriodFormat current) update,
) => copyWith(periodFormat: update(periodFormat));