collapseAllTreeGroups method

void collapseAllTreeGroups()

Collapses all tree groups.

Remember to set expandAll to false in your component. This will not override that behavior.

Implementation

void collapseAllTreeGroups() {
  if (treeGroupNodes == null) return;
  for (var tree in treeGroupNodes!) {
    tree.clearExpansions();
  }
}