TreeNode<T> constructor
TreeNode<T> ({})
Creates a new TreeNode with the specified label and value.
Implementation
TreeNode({
required this.label,
required this.value,
this.children = const [],
this.isExpanded = false,
}) {
for (final child in children) {
child.parent = this;
}
}