UPdfAnnotationSpec constructor

const UPdfAnnotationSpec({
  1. required UPdfAnnotationStyle style,
  2. required Rect rect,
  3. List<Rect> quads = const <Rect>[],
  4. List<List<Offset>> inkPaths = const <List<Offset>>[],
  5. Color color = const Color(0xFFFFEB3B),
  6. Color? borderColor,
  7. double opacity = 1,
  8. double borderWidth = 2,
  9. String contents = "",
  10. String author = "",
  11. String title = "",
  12. double fontSize = 12,
  13. Color textColor = const Color(0xFF000000),
  14. Uint8List? imageBytes,
  15. bool rtl = false,
})

Implementation

const UPdfAnnotationSpec({
  required this.style,
  required this.rect,
  this.quads = const <Rect>[],
  this.inkPaths = const <List<Offset>>[],
  this.color = const Color(0xFFFFEB3B),
  this.borderColor,
  this.opacity = 1,
  this.borderWidth = 2,
  this.contents = "",
  this.author = "",
  this.title = "",
  this.fontSize = 12,
  this.textColor = const Color(0xFF000000),
  this.imageBytes,
  this.rtl = false,
});