David PHAM-VAN

Add PageTheme.copyWith

... ... @@ -7,6 +7,7 @@
- Reorder MultiPage paint operations
- Fix Bullet widget styling
- Fix HSV and HSL Color constructors
- Add PageTheme.copyWith
## 1.4.1
... ...
... ... @@ -68,4 +68,23 @@ class PageTheme {
pageFormat.marginRight, pageFormat.marginBottom);
}
}
PageTheme copyWith({
PdfPageFormat pageFormat,
BuildCallback buildBackground,
BuildCallback buildForeground,
Theme theme,
PageOrientation orientation,
EdgeInsets margin,
bool clip,
}) =>
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,
);
}
... ...