text property

String text

Gets or sets the caption text.

Implementation

String get text => _helper.isLoadedField ? _helper._obtainText() : _text;
void text=(String value)

Implementation

set text(String value) {
  if (_helper.isLoadedField) {
    final bool readOnly = 1 & (_helper.flagValues ?? 65536) != 0;
    if (!readOnly) {
      PdfFormHelper.getHelper(form!).setAppearanceDictionary = true;
      _helper._assignText(value);
    }
  } else {
    if (_text != value) {
      _text = value;
      WidgetAnnotationHelper.getHelper(_helper.widget!)
          .widgetAppearance!
          .normalCaption = _text;
    }
  }
}