TreeViewStateMixin<T> mixin

A mixin for classes implementing a tree structure as expected by a TreeViewController.

Used by TreeView to implement an interface for the TreeViewController.

This allows the TreeViewController to be used in other widgets that implement this interface.

The type T correlates to the type of TreeView and TreeViewNode, representing the type of TreeViewNode.content.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

collapseAll() → void
Closes all parent TreeViewNodes in the tree.
expandAll() → void
Expands all parent TreeViewNodes in the tree.
getActiveIndexFor(TreeViewNode<T> node) int?
Returns the current row index of the given TreeViewNode.
getNodeFor(T content) TreeViewNode<T>?
Retrieves the TreeViewNode containing the associated content, if it exists.
isActive(TreeViewNode<T> node) bool
Returns whether or not the given TreeViewNode is enclosed within its parent TreeViewNode.
isExpanded(TreeViewNode<T> node) bool
Returns whether or not the given TreeViewNode is expanded, regardless of whether or not it is active in the tree.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toggleNode(TreeViewNode<T> node) → void
Switches the given TreeViewNodes expanded state.
toString() String
A string representation of this object.
inherited

Operators

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