SelectionModel<D> constructor

SelectionModel<D>({
  1. List<SeriesDatum<D>>? selectedData,
  2. List<ImmutableSeries<D>>? selectedSeries,
})

Create selection model with the desired selection.

Implementation

SelectionModel({
  List<SeriesDatum<D>>? selectedData,
  List<ImmutableSeries<D>>? selectedSeries,
}) {
  if (selectedData != null) {
    _selectedDatum = selectedData;
  }
  if (selectedSeries != null) {
    _selectedSeries = selectedSeries;
  }
}