WidgetsTreeTree APITree methodscollapseAll()collapseAll() collapses all expanded Tree items collapseAll(): void; Example tree.collapseAll(); Related sample: Tree. Expand all items