ModTreeView constructor
const
ModTreeView({
- Key? key,
- required List<
TreeNode> nodes, - TreeViewTheme theme = const TreeViewTheme(),
- bool enableDragDrop = true,
- bool showIcons = true,
- bool showCheckboxes = false,
- Icon? newItemIcon,
- Icon? updateIcon,
- Icon? syncIcon,
- dynamic onNodeSelected()?,
- dynamic onNodeExpanded()?,
- dynamic onNodeCollapsed()?,
- dynamic onNodeDropped()?,
- dynamic onNodeRightClick()?,
- dynamic onNodeCheckChanged()?,
- int sortComparator()?,
- List<
TreeViewMenuItem> getContextMenuItems()?, - dynamic onContextMenuItemSelected()?,
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,
});