void addText(String text)

Adds the given text to the paragraph.

The text will be styled according to the current stack of text styles.

Source

void addText(String text) {
  String error = _addText(text);
  if (error != null)
    throw new ArgumentError(error);
}