mappingName property Null safety

String mappingName

Gets or sets the mapping name to be used when exporting interactive form field data from the document.

Implementation

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

Implementation

set mappingName(String value) {
  if (_mappingName != value) {
    _mappingName = value;
    _dictionary._setString(_DictionaryProperties.tm, _mappingName);
  }
  if (_isLoadedField) {
    _changed = true;
  }
}