StickyNoteAnnotation constructor

StickyNoteAnnotation({
  1. required int pageNumber,
  2. required String text,
  3. required Offset position,
  4. required PdfStickyNoteIcon icon,
})

Initializes a new instance of StickyNoteAnnotation class.

Implementation

StickyNoteAnnotation(
    {required super.pageNumber,
    required String text,
    required Offset position,
    required PdfStickyNoteIcon icon}) {
  _text = text;
  _icon = icon;
  setBounds(_getDefualtStickyNoteSize(position));
}