TreeViewController<Data, Tree extends ITreeNode<Data>> class final

Utility class to provide easy access to basic node operations. The TreeViewController also exposes basic scrolling methods that can be used for scrolling to an item or a list index.

Constructors

TreeViewController(TreeViewStateHelper<Data> _animatedListController)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tree → Tree
Returns the INode.ROOT_KEY root of the tree
no setter

Methods

collapseNode(Tree node) → void
Method for programmatically collapsing a TreeNode.
elementAt(String path) → Tree
Returns the ITreeNode at the provided path
expandAllChildren(Tree node, {bool recursive = false}) → void
Utility method for programmatically expanding all the child nodes. By default only the immediate children of the node will be expanded. Set recursive to true expanding all the child nodes until the leaf is reached.
expandNode(Tree node) → void
Method for programmatically expanding a TreeNode.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scrollToIndex(int index, [Duration duration = scrollAnimationDuration]) Future
Method for programmatically scrolling to an index in the flat list of the TreeView.
scrollToItem(Tree node, [Duration duration = scrollAnimationDuration]) Future
Method for programmatically scrolling to a node in the TreeView.
toggleExpansion(Tree node) → void
Method for programmatically toggling the expansion state of a TreeNode. If the TreeNode is in expanded state, then it will be collapsed. Else if the TreeNode is in collapsed state, then it will be expanded.
toString() String
A string representation of this object.
inherited

Operators

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