TSelectStateNotifier<T, V> class
- Inheritance
-
- Object
- ChangeNotifier
- TSelectStateNotifier
Constructors
-
TSelectStateNotifier({required bool isMultiple, ItemTextAccessor<
T> ? itemText, ItemValueAccessor<T, V> ? itemValue, ItemKeyAccessor<T> ? itemKey, ItemChildrenAccessor<T> ? itemChildren, String? label})
Properties
-
displayItems
→ List<
TSelectItem< V> > -
no setter
-
displayItemsNotifier
→ ValueNotifier<
List< TSelectItem< >V> > -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
-
internalItems
→ List<
TSelectItem< V> > -
no setter
- isMultiple → bool
-
final
-
itemChildren
→ ItemChildrenAccessor<
T> ? -
final
-
itemKey
→ ItemKeyAccessor<
T> ? -
final
-
itemText
→ ItemTextAccessor<
T> ? -
final
-
itemValue
→ ItemValueAccessor<
T, V> ? -
final
- label → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollPosition → double
-
no setter
-
scrollPositionNotifier
→ ValueNotifier<
double> -
final
- searchQuery → String
-
no setter
-
searchQueryNotifier
→ ValueNotifier<
String> -
final
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
countVisibleItems(
List< TSelectItem< items) → intV> > - Counts visible items in the tree
-
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
-
getSelectedItems(
) → List< TSelectItem< V> > - Gets all selected items
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
onItemTapped(
TSelectItem< V> item) → void - Handles item tap (selection/expansion)
-
onLocalSearchChanged(
String query) → void - Handles local search filtering (only used when pagination is local)
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateDisplayItems(
List< T> items, {bool append = false}) → void - Updates display items (used for server-side pagination)
-
updateItems(
List< T> items) → void - Updates all items (used for local pagination)
-
updateScrollPosition(
double position) → void - Updates scroll position
-
updateSelectedStates(
List< V> selectedValues) → void - Updates selected states for all items
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited