tooltip property

String get tooltip

Gets or sets the tool tip.

Implementation

String get tooltip {
  if (_fieldHelper.isLoadedField && (_tooltip == null || _tooltip!.isEmpty)) {
    final IPdfPrimitive? str = PdfFieldHelper.getValue(
        _fieldHelper.dictionary!,
        _fieldHelper.crossTable,
        PdfDictionaryProperties.tu,
        false);
    if (str != null && str is PdfString) {
      _tooltip = str.value;
    }
  }
  return _tooltip!;
}
set tooltip (String value)

Implementation

set tooltip(String value) {
  if (_tooltip != value) {
    _tooltip = value;
    _fieldHelper.dictionary!.setString(PdfDictionaryProperties.tu, _tooltip);
  }
  if (_fieldHelper.isLoadedField) {
    _fieldHelper.changed = true;
  }
}