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

Properties

flatItems List<T>

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

List of all items (flattened).
no setter
isEmpty bool

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

Whether the display list is empty.
no setter
isNotEmpty bool

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

Whether the display list is not empty.
no setter
itemsMap Map<K, T>

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

Map of all items by key.
no setter
listItemKeys List<K>

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

Keys of currently displayed items.
no setter
listItems List<TListItem<T, K>>

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

List of currently displayed items (paginated/filtered).
no setter
localItems List<T>

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

The items available for local pagination.
no setter

Methods

addItem(T item, [bool prepend = true]) → void

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

Adds a single item.
addItems(List<T> newItems, {bool prepend = true}) → void

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

Adds multiple items.
clear() → void

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

Clears all items and resets state.
getItemsFromKeys(Iterable<K> keys) List<T>

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

Retrieves a list of items corresponding to the provided keys.
removeItem(T item) → void

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

Removes a specific item.
removeItemByKey(K key) → void

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

Removes an item by key.
removeItems(List<T> items) → void

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

Removes multiple items.
removeItemsByKeys(Set<K> keys) → void

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

Removes multiple items by keys.
removeSelectedItems() → void

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

Removes all currently selected items.
reorder(int oldIndex, int newIndex) → void

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

Reorders items in the list.
updateItem(T oldItem, T item) → void

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

Updates an existing item.
updateItemByKey(K key, T item) → void

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

Updates an item by its key.
updateItems(List<T> items) → void

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

Updates the entire list of items.