pressed property

PdfTemplate get pressed

Gets or sets PdfTemplate object which applied to an annotation when mouse button is pressed.

Implementation

PdfTemplate get pressed {
  if (_helper.templatePressed == null) {
    _helper.templatePressed = PdfTemplate(
      _annotation.bounds.width,
      _annotation.bounds.height,
    );
    _helper.dictionary!.setProperty(
      PdfDictionaryProperties.d,
      PdfReferenceHolder(_helper.templatePressed),
    );
  }
  return _helper.templatePressed!;
}
set pressed (PdfTemplate value)

Implementation

set pressed(PdfTemplate value) {
  if (value != _helper.templatePressed) {
    _helper.templatePressed = value;
    _helper.dictionary!.setProperty(
      PdfDictionaryProperties.d,
      PdfReferenceHolder(_helper.templatePressed),
    );
  }
}