copyWith method

PageTheme copyWith({
  1. PdfPageFormat? pageFormat,
  2. BuildCallback? buildBackground,
  3. BuildCallback? buildForeground,
  4. ThemeData? theme,
  5. PageOrientation? orientation,
  6. EdgeInsets? margin,
  7. bool? clip,
  8. TextDirection? textDirection,
})

Implementation

PageTheme copyWith({
  PdfPageFormat? pageFormat,
  BuildCallback? buildBackground,
  BuildCallback? buildForeground,
  ThemeData? theme,
  PageOrientation? orientation,
  EdgeInsets? margin,
  bool? clip,
  TextDirection? textDirection,
}) =>
    PageTheme(
      pageFormat: pageFormat ?? this.pageFormat,
      buildBackground: buildBackground ?? this.buildBackground,
      buildForeground: buildForeground ?? this.buildForeground,
      theme: theme ?? this.theme,
      orientation: orientation ?? this.orientation,
      margin: margin ?? this.margin,
      clip: clip ?? this.clip,
      textDirection: textDirection ?? this.textDirection,
    );