PdfPopupAnnotation constructor
PdfPopupAnnotation(})
Initializes a instance of the PdfPopupAnnotation class specified with bounds, text, open, color, author, subject, opacity, icon, modifiedDate, and flags.
final PdfDocument document = PdfDocument();
final PdfPage page = document.pages.add();
final PdfPopupAnnotation popup =
PdfPopupAnnotation(Rect.fromLTWH(10, 10, 30, 30), 'Popup Annotation');
page.annotations.add(popup);
final List<int> bytes = await document.save();
document.dispose();
Implementation
PdfPopupAnnotation(Rect bounds, String text,
{bool? open,
String? author,
PdfColor? color,
String? subject,
double? opacity,
DateTime? modifiedDate,
PdfPopupIcon? icon,
List<PdfAnnotationFlags>? flags,
bool? setAppearance}) {
_helper = PdfPopupAnnotationHelper(this, bounds, text, open, author, color,
subject, opacity, modifiedDate, icon, flags, setAppearance);
}