updateSelection method

InteractionConfig updateSelection(
  1. ChartSelectionConfig update(
    1. ChartSelectionConfig current
    )
)

Rebuilds InteractionConfig.selection from its current value.

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

Implementation

InteractionConfig updateSelection(
  ChartSelectionConfig Function(ChartSelectionConfig current) update,
) => copyWith(selection: update(selection));