public TreeView(model as TreeModel = null)
Creates a tree view with an optional model.
tree = TreeView(model)