text property

  1. @override
String text
override

Gets or sets the content of the annotation.

The string value specifies the text of the annotation.

Implementation

@override
String get text => super.text;
  1. @override
void text=(String value)
override

Sets content of the annotation. The string value specifies the text of the annotation.

Implementation

@override
set text(String value) {
  final PdfAnnotationHelper helper = PdfAnnotationHelper.getHelper(this);
  if (helper.textValue != value) {
    helper.textValue = value;
    helper.dictionary!
        .setString(PdfDictionaryProperties.contents, helper.textValue);
  }
}