PageFormatOptions.custom constructor

PageFormatOptions.custom({
  1. required 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,
  8. bool clip = false,
})

Implementation

PageFormatOptions.custom({
  required this.width,
  this.height,
  this.marginTop = 0.0,
  this.marginBottom = 0.0,
  this.marginLeft = 0.0,
  this.marginRight = 0.0,
  this.marginAll,
  this.clip = false,
})  : assert(width != null && width > 0, 'width is null or less than 0'),
      pageFormat = PageFormat.custom;