SelectionModel<T>.multi constructor

SelectionModel<T>.multi({
  1. List<T> selectedValues,
  2. KeyProvider<T>? keyProvider,
})

Creates a multi-selection model.

keyProvider is used for equality checking. For example, select will only alter the set of selected values if the key of the new value is not among the keys of the already selected values.

Implementation

factory SelectionModel.multi(
    {List<T> selectedValues,
    KeyProvider<T>? keyProvider}) = MultiSelectionModel<T>;