PdfPageFormat constructor

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

Implementation

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