Context constructor
Context({
- required Document document,
- required PdfPageFormat pageFormat,
- required ThemeData theme,
- required TextDirection textDirection,
- int pageNumber = 1,
- int pagesCount = 1,
- PdfCanvas? canvas,
- FontSubset? subset,
- FontSubset? boldSubset,
- Set<
int> ? usedCodePoints, - List<
PdfEmbeddedImage> ? images, - List<
PdfLinkAnnot> ? links, - List<
PwHeading> ? headings, - List<
PwHeading> ? frozenHeadings, - Map<
String, PwHeading> ? anchors, - 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>{};