TreeView<T> constructor

const TreeView<T>({
  1. Key? key,
  2. required List<TreeNode<T>> nodes,
  3. required Widget builder(
    1. BuildContext context,
    2. TreeItem<T> node
    ),
  4. bool shrinkWrap = false,
  5. ScrollController? controller,
  6. BranchLine branchLine = BranchLine.path,
  7. EdgeInsetsGeometry? padding,
  8. bool expandIcon = true,
  9. bool allowMultiSelect = true,
  10. FocusScopeNode? focusNode,
  11. TreeNodeSelectionChanged<T>? onSelectionChanged,
  12. bool recursiveSelection = true,
})

Implementation

const TreeView({
  super.key,
  required this.nodes,
  required this.builder,
  this.shrinkWrap = false,
  this.controller,
  this.branchLine = BranchLine.path,
  this.padding,
  this.expandIcon = true,
  this.allowMultiSelect = true,
  this.focusNode,
  this.onSelectionChanged,
  this.recursiveSelection = true,
});