TreeView<T> constructor
const
TreeView<T> ({
- Key? key,
- required List<
TreeNode< nodes,T> > - required Widget builder(
- BuildContext context,
- TreeItem<
T> node
- bool shrinkWrap = false,
- ScrollController? controller,
- BranchLine branchLine = BranchLine.path,
- EdgeInsetsGeometry? padding,
- bool expandIcon = true,
- bool allowMultiSelect = true,
- FocusScopeNode? focusNode,
- TreeNodeSelectionChanged<
T> ? onSelectionChanged, - 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,
});