NodeItem constructor
const
NodeItem({
- Key? key,
- NodeItemType type = NodeItemType.ghost,
- String label = 'Label',
- bool isSelected = false,
- bool? isHovered,
- bool isCollapsed = false,
- bool isCollapsible = true,
- bool hasIcon = true,
- Widget? icon,
- IconData? iconData,
- bool hasRightSlot = false,
- Widget? rightSlot,
- bool hasSpacerOne = false,
- bool hasSpacerTwo = false,
- int indentationLevel = 0,
- VoidCallback? onTap,
- VoidCallback? onToggleCollapse,
- VoidCallback? onRightSlotTap,
Creates a NodeItem instance.
Implementation
const NodeItem({
super.key,
this.type = NodeItemType.ghost,
this.label = 'Label',
this.isSelected = false,
this.isHovered,
this.isCollapsed = false,
this.isCollapsible = true,
this.hasIcon = true,
this.icon,
this.iconData,
this.hasRightSlot = false,
this.rightSlot,
this.hasSpacerOne = false,
this.hasSpacerTwo = false,
this.indentationLevel = 0,
this.onTap,
this.onToggleCollapse,
this.onRightSlotTap,
});