controllerOfItem method

NodeController? controllerOfItem(
  1. dynamic item
)

Gets the controller associated with the data

Implementation

NodeController? controllerOfItem(dynamic item) {
  if (item == treeNode.item) {
    return this;
  }
  for (NodeController controller in childControllers) {
    var result = controller.controllerOfItem(item);
    if (result != null) {
      return result;
    }
  }
  return null;
}