TreeView<T> constructor

const TreeView<T>({
  1. Key? key,
  2. required List<T> roots,
  3. required Widget builder(
    1. T node,
    2. int depth,
    3. bool isExpanded
    ),
  4. required List<T> getChildren(
    1. T node
    ),
  5. required Object nodeKey(
    1. T node
    ),
  6. bool isExpandable(
    1. T node
    )?,
  7. TreeController? controller,
  8. FocusNode? focusNode,
  9. void onNodeSelected(
    1. T node
    )?,
})

Creates a TreeView with the given roots, builder, and traversal callbacks.

Implementation

const TreeView({
  super.key,
  required this.roots,
  required this.builder,
  required this.getChildren,
  required this.nodeKey,
  this.isExpandable,
  this.controller,
  this.focusNode,
  this.onNodeSelected,
});