Context constructor

Context({
  1. required Document document,
  2. required PdfPageFormat pageFormat,
  3. required ThemeData theme,
  4. required TextDirection textDirection,
  5. int pageNumber = 1,
  6. int pagesCount = 1,
  7. PdfCanvas? canvas,
  8. FontSubset? subset,
  9. FontSubset? boldSubset,
  10. Set<int>? usedCodePoints,
  11. List<PdfEmbeddedImage>? images,
  12. List<PdfLinkAnnot>? links,
  13. List<PwHeading>? headings,
  14. List<PwHeading>? frozenHeadings,
  15. Map<String, PwHeading>? anchors,
  16. bool measuring = false,
})

Context API.

Implementation

Context({
  required this.document,
  required this.pageFormat,
  required this.theme,
  required this.textDirection,
  this.pageNumber = 1,
  this.pagesCount = 1,
  this.canvas,
  this.subset,
  this.boldSubset,
  Set<int>? usedCodePoints,
  List<PdfEmbeddedImage>? images,
  List<PdfLinkAnnot>? links,
  List<PwHeading>? headings,
  List<PwHeading>? frozenHeadings,
  Map<String, PwHeading>? anchors,
  this.measuring = false,
}) : usedCodePoints = usedCodePoints ?? <int>{},
     images = images ?? <PdfEmbeddedImage>[],
     links = links ?? <PdfLinkAnnot>[],
     headings = headings ?? <PwHeading>[],
     frozenHeadings = frozenHeadings ?? <PwHeading>[],
     anchors = anchors ?? <String, PwHeading>{};