icon property

Gets or sets the icon of StickyNoteAnnotation.

Implementation

PdfStickyNoteIcon get icon => _icon;
set icon (PdfStickyNoteIcon newValue)

Implementation

set icon(PdfStickyNoteIcon newValue) {
  if (_icon != newValue) {
    final bool canChange = onPropertyChange?.call(this, 'icon') ?? true;
    if (canChange) {
      final PdfStickyNoteIcon oldValue = _icon;
      _icon = newValue;
      setBounds(_getDefualtStickyNoteSize(position));
      onPropertyChanged?.call(this, 'icon', oldValue, newValue);
      notifyChange();
    }
  }
}