SelectedController class

Controller for managing a list of selected items, typically used for selection state in UI components.

Inheritance

Constructors

SelectedController()
Creates a SelectedController with an empty selection.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value ↔ List
The current value stored in this notifier.
getter/setter pairinherited

Methods

add(String id) → void
Adds the item with the given id to the selection.
addAll(List ids) → void
Adds all items in the provided ids list to the selection.
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clearSelection() → void
Clears the current selection.
dispose() → void
Discards any resources used by the object.
inherited
isSelected(String id) → bool
Returns true if the item with the given id is selected.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
remove(String id) → void
Removes the item with the given id from the selection.
removeAll() → void
Removes all items from the selection.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
selectAll(List items) → void
Selects all items in the provided items list.
toggleSelection(String id) → void
Toggles the selection state of the item with the given id.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited