Create a new tree that can be expanded and collapsed. You can add children to the tree
with the addChild method so that they appear in the tree.
Optionaltitle: string = ''The title of the tree.
Optionalexpanded: boolean = falseWhether the tree is expanded.
Add a child widget to the tree.
A tree that can be expanded and collapsed, and can also have children.