collapseAndCollapseChildren method
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));
}