PdfPageFormat constructor

const PdfPageFormat(
  1. double width,
  2. double height, {
  3. double marginTop = 0,
  4. double marginBottom = 0,
  5. double marginLeft = 0,
  6. double marginRight = 0,
  7. double? marginAll,
})

PdfPageFormat API.

Implementation

const PdfPageFormat(
  this.width,
  this.height, {
  double marginTop = 0,
  double marginBottom = 0,
  double marginLeft = 0,
  double marginRight = 0,
  double? marginAll,
}) : marginTop = marginAll ?? marginTop,
     marginBottom = marginAll ?? marginBottom,
     marginLeft = marginAll ?? marginLeft,
     marginRight = marginAll ?? marginRight;