Converts a list of items to a tree using a user-defined getChildren function.
getChildren
TODO: optimize the design so that it is not necessary to call getChildren() on non-expanded nodes.
Optional
Converts a list of items to a tree using a user-defined
getChildrenfunction.TODO: optimize the design so that it is not necessary to call getChildren() on non-expanded nodes.