TreeNode<T> constructor

TreeNode<T>({
  1. T? data,
  2. String? key,
  3. Node? parent,
})

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);