TreeNode<T> constructor
Creates a tree node
Implementation
TreeNode(
this.key,
this.data, [
List<TreeNode<T>>? children,
bool isExpanded = false,
]) : children = children ?? <TreeNode<T>>[],
isExpanded = ValueNotifier(isExpanded);