append

fun append(line: String, lastChild: Boolean = false)(source)

Appends a line to the tree with indentation.

Parameters

line

The string to append

lastChild

Whether line is the last child of the parent node (for different formatting)