copyWith method
Context
copyWith({
- ThemeData? theme,
- TextDirection? textDirection,
- PdfPageFormat? pageFormat,
- bool? measuring,
copyWith API.
Implementation
Context copyWith({
ThemeData? theme,
TextDirection? textDirection,
PdfPageFormat? pageFormat,
bool? measuring,
}) {
return Context(
document: document,
pageFormat: pageFormat ?? this.pageFormat,
theme: theme ?? this.theme,
textDirection: textDirection ?? this.textDirection,
pageNumber: pageNumber,
pagesCount: pagesCount,
canvas: canvas,
subset: subset,
boldSubset: boldSubset,
usedCodePoints: usedCodePoints,
images: images,
links: links,
headings: headings,
frozenHeadings: frozenHeadings,
anchors: anchors,
measuring: measuring ?? this.measuring,
);
}