TreeSliverStateMixin<T> mixin

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

Used by TreeSliver to implement an interface for the TreeSliverController.

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

The type T correlates to the type of TreeSliver and TreeSliverNode, representing the type of TreeSliverNode.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 TreeSliverNodes in the tree.
expandAll() → void
Expands all parent TreeSliverNodes in the tree.
getActiveIndexFor(TreeSliverNode<T> node) → int?
Returns the current row index of the given TreeSliverNode.
getNodeFor(T content) → TreeSliverNode<T>?
Retrieves the TreeSliverNode containing the associated content, if it exists.
isActive(TreeSliverNode<T> node) → bool
Returns whether or not the given TreeSliverNode is enclosed within its parent TreeSliverNode.
isExpanded(TreeSliverNode<T> node) → bool
Returns whether or not the given TreeSliverNode is expanded.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toggleNode(TreeSliverNode<T> node) → void
Switches the given TreeSliverNodes expanded state.
toString() → String
A string representation of this object.
inherited

Operators

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