updatePeriodStyle method

BarRaceConfig updatePeriodStyle(
  1. BarRacePeriodStyle update(
    1. BarRacePeriodStyle current
    )
)

Rebuilds BarRaceConfig.periodStyle from its current value.

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

Implementation

BarRaceConfig updatePeriodStyle(
  BarRacePeriodStyle Function(BarRacePeriodStyle current) update,
) => copyWith(periodStyle: update(periodStyle));