GlossTreeController<T extends Object> class

The nodes and the open and chosen state of a GlossTree: make it in a State, dispose it there.

Inheritance

Constructors

GlossTreeController({required List<T> roots, required List<T> childrenOf(T node), Iterable<T> expanded = const []})
A controller over roots, childrenOf each.

Properties

childrenOf → List<T> Function(T node)
A node's children (empty: a leaf).
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
multiSelectionEnabled → bool
Whether more than one node can be selected.
finalinherited
roots ↔ List<T>
The top nodes.
getter/setter pairinherited
rows → List<DesignTreeRow<T>>
The rows shown: every node whose ancestors are all open, in order.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → Set<T>
The selected nodes.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
collapseAll() → void
Closes every node.
inherited
dispose() → void
Discards any resources used by the object.
inherited
expandAll() → void
Opens every node.
inherited
hasChildren(T node) → bool
Whether node has children.
inherited
isExpanded(T node) → bool
Whether node is open.
inherited
isSelected(T node) → bool
Whether node is selected.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
refresh() → void
Re-reads the nodes' children after they changed.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
select(T node) → void
Selects node (alone, unless multiSelectionEnabled; then it toggles).
inherited
setExpanded(T node, bool open) → void
Opens or closes node.
inherited
toggle(T node) → void
Opens node when closed, closes it when open.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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