ModTreeView class

Inheritance

Constructors

ModTreeView.new({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(TreeNode)?, dynamic onNodeExpanded(TreeNode)?, dynamic onNodeCollapsed(TreeNode)?, dynamic onNodeDropped(TreeNode, TreeNode)?, dynamic onNodeRightClick(TreeNode)?, dynamic onNodeCheckChanged(TreeNode, bool)?, int sortComparator(TreeNode, TreeNode)?, List<TreeViewMenuItem> getContextMenuItems(TreeNode)?, dynamic onContextMenuItemSelected(TreeNode, String)?})
const

Properties

enableDragDrop bool
final
getContextMenuItems List<TreeViewMenuItem> Function(TreeNode)?
Callback to get context menu items for a node Return a list of TreeViewMenuItem to show in the context menu
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
newItemIcon Icon?
final
nodes List<TreeNode>
final
onContextMenuItemSelected → dynamic Function(TreeNode, String)?
Callback when a context menu item is selected
final
onNodeCheckChanged → dynamic Function(TreeNode, bool)?
final
onNodeCollapsed → dynamic Function(TreeNode)?
final
onNodeDropped → dynamic Function(TreeNode, TreeNode)?
final
onNodeExpanded → dynamic Function(TreeNode)?
final
onNodeRightClick → dynamic Function(TreeNode)?
final
onNodeSelected → dynamic Function(TreeNode)?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCheckboxes bool
final
showIcons bool
final
sortComparator int Function(TreeNode, TreeNode)?
final
syncIcon Icon?
final
theme TreeViewTheme
final
updateIcon Icon?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ModTreeView>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited