parentOfItem method

NodeData? parentOfItem(
  1. dynamic item
)

Gets the data information for the parent node

Implementation

NodeData? parentOfItem(dynamic item) {
  NodeController controller = _rootController!.controllerOfItem(item)!;
  return controller.parent?.treeNode.item;
}