child
This method is used to easily create child in node.
val root = tree("World") {
child("North America") {
child("USA")
}
child("Europe") {
child("Poland")
child("Germany")
}
}
Content copied to clipboard
Return
New created TreeNode.