TTreeView<T> constructor

const TTreeView<T>({
  1. Key? key,
  2. required List<TTreeNode<T>> nodes,
  3. TTreeSelectionMode selectionMode = TTreeSelectionMode.single,
  4. Set<String>? selectedKeys,
  5. Set<String>? expandedKeys,
  6. ValueChanged<Set<String>>? onSelectionChanged,
  7. ValueChanged<TTreeNode<T>>? onNodeTap,
  8. void onNodeExpanded(
    1. TTreeNode<T> node,
    2. bool isExpanded
    )?,
  9. FutureOr<List<TTreeNode<T>>> onLoadChildren(
    1. TTreeNode<T> node
    )?,
  10. bool showConnectingLines = true,
  11. String? searchQuery,
  12. double indentWidth = 24.0,
  13. Widget nodeBuilder(
    1. BuildContext context,
    2. TTreeNode<T> node,
    3. bool isExpanded,
    4. 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,
});