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 - 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 - 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 -
deselect(
K key) → void -
Available on TListController<
T, K> , provided by the TListControllerSelection extension -
isSelected(
K key) → bool -
Available on TListController<
T, K> , provided by the TListControllerSelection extension -
select(
K key) → void -
Available on TListController<
T, K> , provided by the TListControllerSelection extension -
selectAll(
) → void -
Available on TListController<
T, K> , provided by the TListControllerSelection extension -
selectKeys(
Iterable< K> keys) → void -
Available on TListController<
T, K> , provided by the TListControllerSelection extension -
toggleSelectAll(
) → void -
Available on TListController<
T, K> , provided by the TListControllerSelection extension -
toggleSelection(
K key) → void -
Available on TListController<
T, K> , provided by the TListControllerSelection extension -
updateSelectionState(
LinkedHashSet< K> newSelectedKeys) → void -
Available on TListController<
Replaces the entire selected key set withT, K> , provided by the TListControllerSelection extensionnewSelectedKeys.