updateTooltip method

InteractionConfig updateTooltip(
  1. TooltipConfig update(
    1. TooltipConfig current
    )
)

Rebuilds InteractionConfig.tooltip from its current value.

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

Implementation

InteractionConfig updateTooltip(
  TooltipConfig Function(TooltipConfig current) update,
) => copyWith(tooltip: update(tooltip));