Node<T> constructor

Node<T>({
  1. required String id,
  2. required String label,
  3. required NodeType type,
  4. T? data,
  5. List<Node<T>> children = const [],
  6. bool isExpanded = false,
})

Implementation

Node({
  required this.id,
  required this.label,
  required this.type,
  this.data,
  this.children = const [],
  this.isExpanded = false,
});