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
-
- TListController<
T, K>
- TListController<
Properties
- hasMultipleSelection → bool
-
Available on TListController<
Whether multiple items are selected.T, K> , provided by the TListControllerSelection extensionno setter - hasSelection → bool
-
Available on TListController<
Whether any items are selected.T, K> , provided by the TListControllerSelection extensionno setter - isAllSelected → bool
-
Available on TListController<
Whether all items are selected.T, K> , provided by the TListControllerSelection extensionno setter - isMultiSelect → bool
-
Available on TListController<
Whether multiple selection is enabled.T, K> , provided by the TListControllerSelection extensionno setter - isSomeSelected → bool
-
Available on TListController<
Whether some (but not all) items are selected.T, K> , provided by the TListControllerSelection extensionno setter - selectable → bool
-
Available on TListController<
Whether selection is enabled.T, K> , provided by the TListControllerSelection extensionno setter - selectedCount → int
-
Available on TListController<
The number of selected items.T, K> , provided by the TListControllerSelection extensionno setter -
selectedItems
→ List<
T> -
Available on TListController<
The list of selected items.T, K> , provided by the TListControllerSelection extensionno setter -
selectedKeys
→ LinkedHashSet<
K> -
Available on TListController<
The set of selected item keys.T, K> , provided by the TListControllerSelection extensionno setter - selectionInfo → String
-
Available on TListController<
Human-readable selection information.T, K> , provided by the TListControllerSelection extensionno setter - selectionTristate → bool?
-
Available on TListController<
Tristate selection value (true/null/false).T, K> , provided by the TListControllerSelection extensionno 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