TListControllerItems<T, K> extension
Extension providing item management for TListController.
Handles CRUD operations for list items:
- Add, update, remove items
- Clear all items
- Manage local pagination state updates
- on
-
- TListController<
T, K>
- TListController<
Properties
-
flatItems
→ List<
T> -
Available on TListController<
List of all items (flattened).T, K> , provided by the TListControllerItems extensionno setter - isEmpty → bool
-
Available on TListController<
Whether the display list is empty.T, K> , provided by the TListControllerItems extensionno setter - isNotEmpty → bool
-
Available on TListController<
Whether the display list is not empty.T, K> , provided by the TListControllerItems extensionno setter -
itemsMap
→ Map<
K, T> -
Available on TListController<
Map of all items by key.T, K> , provided by the TListControllerItems extensionno setter -
listItemKeys
→ List<
K> -
Available on TListController<
Keys of currently displayed items.T, K> , provided by the TListControllerItems extensionno setter -
listItems
→ List<
TListItem< T, K> > -
Available on TListController<
List of currently displayed items (paginated/filtered).T, K> , provided by the TListControllerItems extensionno setter -
localItems
→ List<
T> -
Available on TListController<
The items available for local pagination.T, K> , provided by the TListControllerItems extensionno setter
Methods
-
addItem(
T item, [bool prepend = true]) → void -
Available on TListController<
Adds a single item.T, K> , provided by the TListControllerItems extension -
addItems(
List< T> newItems, {bool prepend = true}) → void -
Available on TListController<
Adds multiple items.T, K> , provided by the TListControllerItems extension -
clear(
) → void -
Available on TListController<
Clears all items and resets state.T, K> , provided by the TListControllerItems extension -
getItemsFromKeys(
Iterable< K> keys) → List<T> -
Available on TListController<
Retrieves a list of items corresponding to the provided keys.T, K> , provided by the TListControllerItems extension -
removeItem(
T item) → void -
Available on TListController<
Removes a specific item.T, K> , provided by the TListControllerItems extension -
removeItemByKey(
K key) → void -
Available on TListController<
Removes an item by key.T, K> , provided by the TListControllerItems extension -
removeItems(
List< T> items) → void -
Available on TListController<
Removes multiple items.T, K> , provided by the TListControllerItems extension -
removeItemsByKeys(
Set< K> keys) → void -
Available on TListController<
Removes multiple items by keys.T, K> , provided by the TListControllerItems extension -
removeSelectedItems(
) → void -
Available on TListController<
Removes all currently selected items.T, K> , provided by the TListControllerItems extension -
reorder(
int oldIndex, int newIndex) → void -
Available on TListController<
Reorders items in the list.T, K> , provided by the TListControllerItems extension -
updateItem(
T oldItem, T item) → void -
Available on TListController<
Updates an existing item.T, K> , provided by the TListControllerItems extension -
updateItemByKey(
K key, T item) → void -
Available on TListController<
Updates an item by its key.T, K> , provided by the TListControllerItems extension -
updateItems(
List< T> items) → void -
Available on TListController<
Updates the entire list of items.T, K> , provided by the TListControllerItems extension