appendText method Null safety

void appendText (
  1. String text
)

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

Implementation

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