TreeNode<T> constructor

const TreeNode<T>(
  1. T value, {
  2. List<TreeNode<T>> subNodes = const [],
})

Construct a TreeNode with optional List of children value payload of the node subNodes list of Child nodes

Implementation

const TreeNode(
  this.value, {
  this.subNodes = const [],
});