updateStyle method
- CrosshairStyle update(
- CrosshairStyle current
Rebuilds CrosshairConfig.style from its current value.
update receives the current CrosshairStyle and returns the replacement, so
nested configuration is edited without re-stating the enclosing config.
Implementation
CrosshairConfig updateStyle(
CrosshairStyle Function(CrosshairStyle current) update,
) => copyWith(style: update(style));