IndexedTreeNode<T>.root constructor

IndexedTreeNode<T>.root({
  1. T? data,
})

Factory constructor to be used only for root IndexedTreeNode

Implementation

factory IndexedTreeNode.root({T? data}) =>
    IndexedTreeNode(key: INode.ROOT_KEY, data: data);