createNewNodeController method

NodeController createNewNodeController(
  1. NodeController parentController,
  2. int index
)

Implementation

NodeController createNewNodeController(
    NodeController parentController, int index) {
  var lazyItem = TreeNodeItem(
      parent: parentController.treeNode.item, controller: this, index: index);
  NodeController controller = NodeController(
      parent: parentController,
      nodeItem: lazyItem,
      expandCallback: (dynamic item) {
        bool result = false;
        return result;
      });
  return controller;
}