NodeItem constructor

const NodeItem({
  1. Key? key,
  2. NodeItemType type = NodeItemType.ghost,
  3. String label = 'Label',
  4. bool isSelected = false,
  5. bool? isHovered,
  6. bool isCollapsed = false,
  7. bool isCollapsible = true,
  8. bool hasIcon = true,
  9. Widget? icon,
  10. IconData? iconData,
  11. bool hasRightSlot = false,
  12. Widget? rightSlot,
  13. bool hasSpacerOne = false,
  14. bool hasSpacerTwo = false,
  15. int indentationLevel = 0,
  16. VoidCallback? onTap,
  17. VoidCallback? onToggleCollapse,
  18. 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,
});