TreeNode<T> constructor
TreeNode<T> ({})
Implementation
TreeNode({
required this.id,
required this.data,
List<TreeNode<T>>? children,
this.isExpanded = false,
this.isSelected = false,
this.level = 0,
this.selectable = true,
this.isLeaf,
this.isLoading = false,
}) : children = children ?? [];