void appendText(String text)

Adds the specified text as a text node after the last child of this document fragment.

Source

void appendText(String text) {
  this.append(new Text(text));
}