TListController<T, K> class
- Inheritance
-
- Object
- ChangeNotifier
- ValueNotifier<
TListState< T, K> > - TListController
- Available extensions
Constructors
-
TListController({List<
T> items = const [], int itemsPerPage = 0, String search = '', int? searchDelay, TSelectionMode selectionMode = TSelectionMode.none, TExpansionMode expansionMode = TExpansionMode.none, TLoadListener<T> ? onLoad, ItemKeyAccessor<T, K> ? itemKey, ItemToString<T> ? itemToString, ListItemFactory<T, K> ? itemFactory, ItemChildrenAccessor<T> ? itemChildren})
Properties
- canGoToNextPage → bool
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - canGoToPreviousPage → bool
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - computedItemsPerPage → int
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter -
displayItemKeys
→ List<
K> -
no setter
- expandable → bool
-
Available on TListController<
T, K> , provided by the TListControllerExpansion extensionno setter - expandedCount → int
-
Available on TListController<
T, K> , provided by the TListControllerExpansion extensionno setter -
expandedItems
→ List<
T> -
Available on TListController<
T, K> , provided by the TListControllerExpansion extensionno setter -
expandedKeys
→ LinkedHashSet<
K> -
Available on TListController<
T, K> , provided by the TListControllerExpansion extensionno setter - expansionInfo → String
-
Available on TListController<
T, K> , provided by the TListControllerExpansion extensionno setter - expansionMode → TExpansionMode
-
Available on TListController<
T, K> , provided by the TListControllerExpansion extensionno setter -
filter
→ TSearchFilter<
T> -
final
-
flatItems
→ Iterable<
T> -
Available on TListController<
T, K> , provided by the TListControllerItems extensionno setter - hasError → bool
-
no setter
- hasExpansion → bool
-
Available on TListController<
T, K> , provided by the TListControllerExpansion extensionno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- hasMoreItems → bool
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - hasMultipleExpansion → bool
-
Available on TListController<
T, K> , provided by the TListControllerExpansion extensionno setter - hasMultipleSelection → bool
-
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter - hasSelection → bool
-
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter - isAllExpanded → bool
-
Available on TListController<
T, K> , provided by the TListControllerExpansion extensionno setter - isAllSelected → bool
-
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter - isEmpty → bool
-
no setter
- isFirstPage → bool
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - isHierarchical → bool
-
no setter
- isLastPage → bool
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - isLoading → bool
-
no setter
- isMultiSelect → bool
-
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter - isNotEmpty → bool
-
no setter
- isServerSide → bool
-
no setter
- isSomeExpanded → bool
-
Available on TListController<
T, K> , provided by the TListControllerExpansion extensionno setter - isSomeSelected → bool
-
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter -
itemChildren
→ ItemChildrenAccessor<
T> ? -
final
-
itemFactory
→ ListItemFactory<
T, K> -
final
-
itemKey
→ ItemKeyAccessor<
T, K> -
final
-
itemsMap
→ Map<
K, T> -
Available on TListController<
T, K> , provided by the TListControllerItems extensionno setter - itemsPerPage → int
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter -
itemToString
→ ItemToString<
T> -
final
-
listItems
→ List<
TListItem< T, K> > -
Available on TListController<
T, K> , provided by the TListControllerItems extensionno setter -
localItems
→ List<
T> -
Available on TListController<
T, K> , provided by the TListControllerItems extensionno setter - mounted → bool
-
no setter
-
onLoad
→ TLoadListener<
T> ? -
final
- page → int
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - pageEndedAt → int
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - pageStartedAt → int
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - paginationInfo → String
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectable → bool
-
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter - selectedCount → int
-
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter -
selectedItems
→ List<
T> -
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter -
selectedKeys
→ LinkedHashSet<
K> -
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter - selectionInfo → String
-
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter - selectionMode → TSelectionMode
-
Available on TListController<
T, K> , provided by the TListControllerSelection extensionno setter - totalDisplayItems → int
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - totalItems → int
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter - totalPages → int
-
Available on TListController<
T, K> , provided by the TListControllerPagination extensionno setter -
value
↔ TListState<
T, K> -
The current value stored in this notifier.
getter/setter pairinherited
Methods
-
addItem(
T item, [bool prepend = true]) → void -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
addItems(
List< T> newItems, {bool prepend = true}) → void -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
cancelPendingOperations(
) → void -
clear(
) → void -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
clearError(
) → void -
clearSelection(
) → void -
Available on TListController<
T, K> , provided by the TListControllerSelection extension -
collapseAll(
) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
collapseItem(
T item) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
collapseItemKey(
K key) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
computeItemsPerPageOptions(
List< int> options) → List<int> -
Available on TListController<
T, K> , provided by the TListControllerPagination 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 -
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
expandAll(
) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
expandItem(
T item) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
expandItemKey(
K key) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
expandItemKeys(
Iterable< K> keys) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
expandItems(
Iterable< T> items) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
getItemsFromKeys(
Iterable< K> keys) → List<T> -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
goToFirstPage(
) → void -
Available on TListController<
T, K> , provided by the TListControllerPagination extension -
goToLastPage(
) → void -
Available on TListController<
T, K> , provided by the TListControllerPagination extension -
goToNextPage(
) → void -
Available on TListController<
T, K> , provided by the TListControllerPagination extension -
goToPreviousPage(
) → void -
Available on TListController<
T, K> , provided by the TListControllerPagination extension -
handleItemsPerPageChange(
int newItemsPerPage) → void -
Available on TListController<
T, K> , provided by the TListControllerPagination extension -
handleLoadMore(
) → void -
Available on TListController<
T, K> , provided by the TListControllerPagination extension -
handlePageChange(
int newPage) → void -
Available on TListController<
T, K> , provided by the TListControllerPagination extension -
handleRefresh(
) → void -
Available on TListController<
T, K> , provided by the TListControllerPagination extension -
handleSearchChange(
String search) → void -
Available on TListController<
T, K> , provided by the TListControllerPagination extension -
handleSearchImmediate(
String search) → void -
Available on TListController<
T, K> , provided by the TListControllerPagination extension -
isItemExpanded(
T item) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
isItemKeyExpanded(
K key) → bool -
Available on TListController<
T, K> , provided by the TListControllerExpansion 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 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeItem(
T item) → void -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
removeItemByKey(
K key) → void -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
removeItems(
List< T> items) → void -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
removeItemsByKeys(
Set< K> keys) → void -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
removeSelectedItems(
) → void -
Available on TListController<
T, K> , provided by the TListControllerItems 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 -
toggleExpandAll(
) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
toggleExpansion(
T item) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
toggleExpansionByKey(
K key) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion 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 -
toString(
) → String -
A string representation of this object.
inherited
-
updateExpansionState(
LinkedHashSet< K> expandedKeys) → void -
Available on TListController<
T, K> , provided by the TListControllerExpansion extension -
updateItem(
T oldItem, T item) → void -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
updateItemByKey(
K key, T item) → void -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
updateItems(
List< T> items) → void -
Available on TListController<
T, K> , provided by the TListControllerItems extension -
updateSelectionState(
LinkedHashSet< K> selectedKeys, {String who = ''}) → void -
Available on TListController<
T, K> , provided by the TListControllerSelection extension -
updateState(
{required String who, LinkedHashSet< K> ? selectedKeys, LinkedHashSet<K> ? expandedKeys, List<TListItem< ? displayItems, int? page, int? itemsPerPage, int? totalItems, bool? loading, bool? hasMoreItems, String? search, TSelectionMode? selectionMode, TExpansionMode? expansionMode, TListError? error}) → voidT, K> >
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
allowedKeyTypes
→ const List<
Type>