TTreeView<T> constructor
const
TTreeView<T> ({
- Key? key,
- required List<
TTreeNode< nodes,T> > - TTreeSelectionMode selectionMode = TTreeSelectionMode.single,
- Set<
String> ? selectedKeys, - Set<
String> ? expandedKeys, - ValueChanged<
Set< ? onSelectionChanged,String> > - ValueChanged<
TTreeNode< ? onNodeTap,T> > - void onNodeExpanded()?,
- FutureOr<
List< onLoadChildren(TTreeNode< >T> >- TTreeNode<
T> node
- TTreeNode<
- bool showConnectingLines = true,
- String? searchQuery,
- double indentWidth = 24.0,
- Widget nodeBuilder(
- BuildContext context,
- TTreeNode<
T> node, - bool isExpanded,
- bool isSelected,
Implementation
const TTreeView({
super.key,
required this.nodes,
this.selectionMode = TTreeSelectionMode.single,
this.selectedKeys,
this.expandedKeys,
this.onSelectionChanged,
this.onNodeTap,
this.onNodeExpanded,
this.onLoadChildren,
this.showConnectingLines = true,
this.searchQuery,
this.indentWidth = 24.0,
this.nodeBuilder,
});