SelectionTreeView constructor
const
SelectionTreeView({
- Key? key,
- required List<
TreeNode> rootNodes, - required dynamic onSelectNode(),
- TreeConfiguration? treeConfiguration,
- TitleBuilder? titleBuilder,
- PrefixIconBuilder? prefixIconBuilder,
- TreeRowDecoration? treeRowDecoration,
Creates a widget that displays a tree view with selectable nodes.
rootNodes is a required list of TreeNode that represents the root
of the tree.
onSelectNode is a required callback that is invoked when a node is selected.
treeConfiguration is an optional configuration for the tree view.
titleBuilder is an optional builder for the title of each node.
prefixIconBuilder is an optional builder for the prefix icon of each node.
Implementation
const SelectionTreeView({
super.key,
required this.rootNodes,
required this.onSelectNode,
this.treeConfiguration,
this.titleBuilder,
this.prefixIconBuilder,
this.treeRowDecoration,
});