copyWith method

PdfPageFormat copyWith({
  1. double? width,
  2. double? height,
  3. double? marginTop,
  4. double? marginBottom,
  5. double? marginLeft,
  6. double? marginRight,
})

Implementation

PdfPageFormat copyWith(
    {double? width,
    double? height,
    double? marginTop,
    double? marginBottom,
    double? marginLeft,
    double? marginRight}) {
  return PdfPageFormat(width ?? this.width, height ?? this.height,
      marginTop: marginTop ?? this.marginTop,
      marginBottom: marginBottom ?? this.marginBottom,
      marginLeft: marginLeft ?? this.marginLeft,
      marginRight: marginRight ?? this.marginRight);
}