addText method

NumberedListItem addText(
  1. String text, {
  2. TextAnnotations? annotations,
})

Add a text to the rich text array and returns this instance. Also can receive the annotations of the text.

Implementation

NumberedListItem addText(String text, {TextAnnotations? annotations}) {
  this._content.add(Text(text, annotations: annotations));
  return this;
}