endLineStyle property

PdfLineEndingStyle get endLineStyle

Gets the end line style of the annotation.

Implementation

PdfLineEndingStyle get endLineStyle =>
    PdfAnnotationHelper.getHelper(this).isLoadedAnnotation
        ? _helper._getLineStyle(1)
        : _endLineStyle;
set endLineStyle (PdfLineEndingStyle value)

Sets the end line style of the annotation.

Implementation

set endLineStyle(PdfLineEndingStyle value) {
  final PdfAnnotationHelper helper = PdfAnnotationHelper.getHelper(this);
  if (!helper.isLoadedAnnotation) {
    _endLineStyle = value;
  } else {
    PdfArray? lineStyle = _helper._obtainLineStyle();
    if (lineStyle == null) {
      lineStyle = PdfArray();
    } else {
      lineStyle.elements.removeAt(1);
    }
    lineStyle.insert(
        1,
        PdfName(helper.getEnumName(
            _helper._getLineStyle(helper.getEnumName(value.toString())))));
    helper.dictionary!.setProperty(PdfDictionaryProperties.le, lineStyle);
  }
}