TreeNode<T> constructor

const TreeNode<T>({
  1. required TreeNodeId id,
  2. required String label,
  3. List<TreeNode<T>> children = const [],
  4. T? value,
  5. IconData? icon,
  6. String? badge,
  7. bool? folder,
  8. bool selectable = true,
  9. Map<String, Object?> data = const {},
})

Implementation

const TreeNode({
  required this.id,
  required this.label,
  this.children = const [],
  this.value,
  this.icon,
  this.badge,
  this.folder,
  this.selectable = true,
  this.data = const {},
});