TreeViewController<Data, Tree extends ITreeNode<Data> > class
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(AnimatedListController<
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
-
elementAt(
String path) → Tree -
Returns the ITreeNode at the provided
path -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scrollToIndex(
int index) → Future -
Method for programmatically scrolling to an
indexin the flat list of the TreeView. -
scrollToItem(
Tree node) → Future -
Method for programmatically scrolling to a
nodein 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