copyWith method

Context copyWith({
  1. ThemeData? theme,
  2. TextDirection? textDirection,
  3. PdfPageFormat? pageFormat,
  4. 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,
  );
}