Node<T> constructor

const Node<T>({
  1. required String key,
  2. required String label,
  3. List<Node> children = const [],
  4. bool expanded = false,
  5. bool parent = false,
  6. IconData? icon,
  7. Color? iconColor,
  8. Color? selectedIconColor,
  9. T? data,
})

Implementation

const Node({
  required this.key,
  required this.label,
  this.children: const [],
  this.expanded: false,
  this.parent: false,
  this.icon,
  this.iconColor,
  this.selectedIconColor,
  this.data,
});