tree_view/tree_view library

Classes

SliverTreeView<Data, Tree extends ITreeNode<Data>>
The SliverTreeView allows to visually display a tree data structure in a linear list which animates the node addition, removal, changes and expansion/collapse of the node.
SliverTreeViewState<Data, Tree extends ITreeNode<Data>>
TreeView<Data, Tree extends ITreeNode<Data>>
The TreeView allows to visually display a tree data structure in a linear list which animates the node addition, removal, changes and expansion/collapse of the node.
TreeViewController<Data, Tree extends ITreeNode<Data>>
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.
TreeViewState<Data, Tree extends ITreeNode<Data>>

Enums

ExpansionBehavior
The ExpansionBehavior provides control over the behavior of the node when it is expanded.

Functions

noExpansionIndicatorBuilder<Data>(BuildContext context, ITreeNode<Data> tree) ExpansionIndicator

Typedefs

TreeNodeWidgetBuilder<Tree> = Widget Function(BuildContext context, Tree item)
The builder function that allows to build any item of type Tree. The level has been removed from the builder in version 2.0.0. To get the node level, use the ITreeNode.level instead.
TreeReadyCallback<Data, Tree extends ITreeNode<Data>> = void Function(TreeViewController<Data, Tree> controller)
Callback to get the TreeViewController when the TreeView is ready