TreeNode<T> constructor

TreeNode<T>({
  1. required String label,
  2. T? value,
  3. IconData? icon,
  4. List<TreeNode<T>> children = const [],
  5. bool isExpanded = false,
  6. Widget? trailing,
})

Implementation

TreeNode({
  required this.label,
  this.value,
  this.icon,
  this.children = const [],
  this.isExpanded = false,
  this.trailing,
});