TreeNode<T> constructor
A TreeNode constructor that can be used with the TreeView.
Any data of type T
can be wrapped with TreeNode
Implementation
TreeNode({T? data, super.key, super.parent})
: this.listenableData = ValueNotifier(data);