updateStyle method

CrosshairConfig updateStyle(
  1. CrosshairStyle update(
    1. 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));