selectionModels property

Map<SelectionModelType, UserManagedSelectionModel<D>> selectionModels
final

The expected selection(s) on the chart.

If this is set and the model for the selection model type differs from what is in the internal chart state, the selection will be applied and repainting will occur such that behaviors that draw differently on selection change can update, such as the line point highlighter.

If more than one type of selection model is used, only the one(s) specified in this list will override what is kept in the internally.

To clear the selection, add an empty selection model.

Implementation

final selectionModels =
    <common.SelectionModelType, UserManagedSelectionModel<D>>{};