SelectionTreeView constructor

const SelectionTreeView({
  1. Key? key,
  2. required List<TreeNode> rootNodes,
  3. required dynamic onSelectNode(
    1. List<TreeNode>? rootNodes,
    2. TreeNode nodeSelected
    ),
  4. TreeConfiguration? treeConfiguration,
  5. TitleBuilder? titleBuilder,
  6. PrefixIconBuilder? prefixIconBuilder,
  7. 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,
});