TListControllerSelection<T, K> extension

Extension providing selection functionality for TListController.

Enables single and multiple item selection with methods to:

  • Select/deselect individual items
  • Select/deselect all items
  • Toggle selection states
  • Query selection status

Example:

// Select an item
controller.selectItem(product);

// Select multiple items
controller.selectItems([product1, product2]);

// Check selection
if (controller.hasSelection) {
  print('Selected: ${controller.selectedCount}');
}

// Clear selection
controller.clearSelection();
on

Properties

hasMultipleSelection bool

Available on TListController<T, K>, provided by the TListControllerSelection extension

Whether multiple items are selected.
no setter
hasSelection bool

Available on TListController<T, K>, provided by the TListControllerSelection extension

Whether any items are selected.
no setter
isAllSelected bool

Available on TListController<T, K>, provided by the TListControllerSelection extension

Whether all items are selected.
no setter
isMultiSelect bool

Available on TListController<T, K>, provided by the TListControllerSelection extension

Whether multiple selection is enabled.
no setter
isSomeSelected bool

Available on TListController<T, K>, provided by the TListControllerSelection extension

Whether some (but not all) items are selected.
no setter
selectable bool

Available on TListController<T, K>, provided by the TListControllerSelection extension

Whether selection is enabled.
no setter
selectedCount int

Available on TListController<T, K>, provided by the TListControllerSelection extension

The number of selected items.
no setter
selectedItems List<T>

Available on TListController<T, K>, provided by the TListControllerSelection extension

The list of selected items.
no setter
selectedKeys LinkedHashSet<K>

Available on TListController<T, K>, provided by the TListControllerSelection extension

The set of selected item keys.
no setter
selectionInfo String

Available on TListController<T, K>, provided by the TListControllerSelection extension

Human-readable selection information.
no setter
selectionTristate bool?

Available on TListController<T, K>, provided by the TListControllerSelection extension

Tristate selection value (true/null/false).
no setter

Methods

clearSelection() → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

deselectItem(T item) → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

deselectItemKey(K key) → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

isItemKeySelected(K key) bool

Available on TListController<T, K>, provided by the TListControllerSelection extension

isItemSelected(T item) → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

selectAll() → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

selectItem(T item) → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

selectItemKey(K key) → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

selectItemKeys(Iterable<K> keys) → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

selectItems(Iterable<T> items) → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

toggleSelectAll() → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

toggleSelection(T item) → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

toggleSelectionByKey(K key) → void

Available on TListController<T, K>, provided by the TListControllerSelection extension

updateSelectionState(LinkedHashSet<K> selectedKeys, {String who = ''}) → void

Available on TListController<T, K>, provided by the TListControllerSelection extension