updateStyle method

TooltipConfig updateStyle(
  1. TooltipStyle update(
    1. TooltipStyle current
    )
)

Rebuilds TooltipConfig.style from its current value.

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

Implementation

TooltipConfig updateStyle(
  TooltipStyle Function(TooltipStyle current) update,
) => copyWith(style: update(style));