SelectionController constructor
Creates a selection controller.
multiSelect determines if multiple items can be selected.
initialSelection pre-selects the given indices.
Implementation
SelectionController({
this.multiSelect = false,
Set<int>? initialSelection,
}) : _selected = {...?initialSelection};