name property

String? get name

The unique name of the annotation (/NM), or null when absent.

Implementation

String? get name => _decodeText(dictionary[PdfNameTokens.nm]);
set name (String? value)

Writes /NM; null removes the key.

Implementation

set name(String? value) {
  final target = writableDictionary();
  if (target == null) return;
  if (value == null) {
    target.values.remove(PdfNameTokens.nm);
  } else {
    target[PdfNameTokens.nm] = PdfString.fromString(value);
  }
}