selectedIndexes property

List<int> get selectedIndexes

Gets or sets selected indexes in the list.

Multiple indexes will be selected only when multiSelect property is enabled, Otherwise only the first index in the collection will be selected.

Implementation

List<int> get selectedIndexes => _helper.selectedIndexes;
set selectedIndexes (List<int> value)

Implementation

set selectedIndexes(List<int> value) {
  _helper.selectedIndexes =
      multiSelect || value.isEmpty ? value : <int>[value[0]];
}