TreeViewController class

Controls the ListTreeView.

Inheritance

Constructors

TreeViewController()

Properties

data List?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
rootController NodeController
Get the controller for the root node. If null will be initialized according to the data
no setter
rootDataNode ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
collapseItem(TreeNode treeNode) → void
Begin collapse
createNewNodeController(NodeController parentController, int index) NodeController
createNodeController(NodeController parentController, List<int> indexes) List<NodeController>
Create controllers for each child node
dataForTreeNode(TreeNodeItem nodeItem) → dynamic
Gets the data associated with each item
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).
inherited
expandItem(TreeNode treeNode) → void
Begin expand
expandOrCollapse(int index) TreeNode
Click item to expand or contract or collapse index The index of the clicked item
indexOfItem(dynamic item) int
The index of the specified item
insertAllAtFront(NodeData? parent, List<NodeData> newNodes, {bool closeCanInsert = false}) → void
Appends all nodes to the head of parent. parent The parent node newNode The node will be insert closeCanInsert Can insert when parent closed
insertAtFront(NodeData? parent, NodeData newNode, {bool closeCanInsert = false}) → void
Insert a node in the head parent The parent node newNode The node will be insert closeCanInsert Can insert when parent closed
insertAtIndex(int index, dynamic parent, NodeData newNode, {bool closeCanInsert = false}) → void
Inserts a node at position index in parent. The index value must be non-negative and no greater than length.
insertAtRear(NodeData? parent, NodeData newNode, {bool closeCanInsert = false}) → void
Insert a node in the end parent The parent node newNode The node will be insert closeCanInsert Can insert when parent closed
isExpanded(dynamic item) bool
itemChildrenLength(dynamic item) int
levelOfNode(dynamic item) int
The level of the specified item
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
numberOfVisibleChild() int
Gets the number of visible children of the ListTreeView
parentOfItem(dynamic item) NodeData?
Gets the data information for the parent node
rebuild() → void
removeItem(dynamic item) → void
remove
removeItemAtIndexes(int index, dynamic parent) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
selectAllChild(dynamic item) → void
selectItem(dynamic item) → void
select
toString() String
A string representation of this object.
inherited
treeData(List? data) → void
treeNodeOfIndex(int index) TreeNode
TreeNode by index

Operators

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