ModTreeView constructor

const ModTreeView({
  1. Key? key,
  2. required List<TreeNode> nodes,
  3. TreeViewTheme theme = const TreeViewTheme(),
  4. bool enableDragDrop = true,
  5. bool showIcons = true,
  6. bool showCheckboxes = false,
  7. Icon? newItemIcon,
  8. Icon? updateIcon,
  9. Icon? syncIcon,
  10. dynamic onNodeSelected(
    1. TreeNode
    )?,
  11. dynamic onNodeExpanded(
    1. TreeNode
    )?,
  12. dynamic onNodeCollapsed(
    1. TreeNode
    )?,
  13. dynamic onNodeDropped(
    1. TreeNode,
    2. TreeNode
    )?,
  14. dynamic onNodeRightClick(
    1. TreeNode
    )?,
  15. dynamic onNodeCheckChanged(
    1. TreeNode,
    2. bool
    )?,
  16. int sortComparator(
    1. TreeNode,
    2. TreeNode
    )?,
  17. List<TreeViewMenuItem> getContextMenuItems(
    1. TreeNode
    )?,
  18. dynamic onContextMenuItemSelected(
    1. TreeNode,
    2. String
    )?,
})

Implementation

const ModTreeView({
  super.key,
  required this.nodes,
  this.theme = const TreeViewTheme(),
  this.enableDragDrop = true,
  this.showIcons = true,
  this.showCheckboxes = false,
  this.newItemIcon,
  this.updateIcon,
  this.syncIcon,
  this.onNodeSelected,
  this.onNodeExpanded,
  this.onNodeCollapsed,
  this.onNodeDropped,
  this.onNodeRightClick,
  this.onNodeCheckChanged,
  this.sortComparator,
  this.getContextMenuItems,
  this.onContextMenuItemSelected,
});