collapseAndCollapseChildren method

void collapseAndCollapseChildren(
  1. bool collapseChildren
)

collapse

Implementation

void collapseAndCollapseChildren(bool collapseChildren) {
  treeNode.setExpanded = false;
  resetData();

  ///collapse children
  if (collapseChildren) {
    for (NodeController controller in childControllers) {
      controller.collapseAndCollapseChildren(collapseChildren);
    }
  }
  parent!.resetNodesAfterChildAtIndex(parent!.childControllers.indexOf(this));
}