TTreeNode<T> constructor

const TTreeNode<T>({
  1. required String key,
  2. required String label,
  3. T? data,
  4. dynamic icon,
  5. dynamic expandedIcon,
  6. List<TTreeNode<T>> children = const [],
  7. bool? isLeaf,
  8. bool isLoading = false,
  9. String? badge,
  10. Widget? trailing,
  11. bool isSelectable = true,
  12. bool isDisabled = false,
})

Implementation

const TTreeNode({
  required this.key,
  required this.label,
  this.data,
  this.icon,
  this.expandedIcon,
  this.children = const [],
  this.isLeaf,
  this.isLoading = false,
  this.badge,
  this.trailing,
  this.isSelectable = true,
  this.isDisabled = false,
});