TreeNode constructor

TreeNode({
  1. required String id,
  2. required String label,
  3. required IconData iconData,
  4. Color? iconColor,
  5. bool isFolder = false,
  6. bool isExpanded = false,
  7. bool isSelected = false,
  8. List<TreeNode> children = const [],
  9. dynamic data,
  10. NodeStateMode stateMode = NodeStateMode.synced,
})

Implementation

TreeNode({
  required this.id,
  required this.label,
  required this.iconData,
  this.iconColor,
  this.isFolder = false,
  this.isExpanded = false,
  this.isSelected = false,
  this.children = const [],
  this.data,
  this.stateMode = NodeStateMode.synced,
});