title property

String get title

Gets the named destination title.

Implementation

String get title {
  if (_isLoaded) {
    String? title = '';
    if (_helper.dictionary!.containsKey(PdfDictionaryProperties.title)) {
      final PdfString str = _crossTable.getObject(
          _helper.dictionary![PdfDictionaryProperties.title])! as PdfString;
      title = str.value;
    }
    return title!;
  } else {
    final PdfString? title =
        _helper.dictionary![PdfDictionaryProperties.title] as PdfString?;
    String? value;
    if (title != null) {
      value = title.value;
    }
    return value!;
  }
}
set title (String value)

Sets the named destination title.

Implementation

set title(String value) {
  _helper.dictionary![PdfDictionaryProperties.title] = PdfString(value);
}