tooltip property Null safety

String tooltip

Gets or sets the tool tip.

Implementation

String get tooltip {
  if (_isLoadedField && (_tooltip == null || _tooltip!.isEmpty)) {
    final _IPdfPrimitive? str =
        _getValue(_dictionary, _crossTable, _DictionaryProperties.tu, false);
    if (str != null && str is _PdfString) {
      _tooltip = str.value;
    }
  }
  return _tooltip!;
}
void tooltip=(String value)

Implementation

set tooltip(String value) {
  if (_tooltip != value) {
    _tooltip = value;
    _dictionary._setString(_DictionaryProperties.tu, _tooltip);
  }
  if (_isLoadedField) {
    _changed = true;
  }
}