TreeViewProps constructor

const TreeViewProps({
  1. required List<TreeNodeData> nodes,
  2. void onNodeSelect(
    1. TreeNodeData node
    )?,
  3. void onNodeToggle(
    1. TreeNodeData node,
    2. bool expanded
    )?,
  4. TreeViewStyle style = TreeViewStyle.lines,
  5. TreeSelectionMode selectionMode = TreeSelectionMode.single,
  6. Set<String> initiallyExpanded = const {},
  7. Set<String> selectedNodes = const {},
  8. bool expandAll = false,
})

Implementation

const TreeViewProps({
  required this.nodes,
  this.onNodeSelect,
  this.onNodeToggle,
  this.style = TreeViewStyle.lines,
  this.selectionMode = TreeSelectionMode.single,
  this.initiallyExpanded = const {},
  this.selectedNodes = const {},
  this.expandAll = false,
});