CPDFBackground.color constructor

const CPDFBackground.color({
  1. required List<int> pages,
  2. required Color color,
  3. double opacity = 1,
  4. double scale = 1,
  5. double rotation = 0,
  6. CPDFBackgroundHorizontalAlignment horizontalAlignment = CPDFBackgroundHorizontalAlignment.center,
  7. CPDFBackgroundVerticalAlignment verticalAlignment = CPDFBackgroundVerticalAlignment.center,
  8. double horizontalOffset = 0,
  9. double verticalOffset = 0,
  10. bool allowView = true,
  11. bool allowPrint = true,
})

Implementation

const CPDFBackground.color({
  required this.pages,
  required Color this.color,
  this.opacity = 1,
  this.scale = 1,
  this.rotation = 0,
  this.horizontalAlignment = CPDFBackgroundHorizontalAlignment.center,
  this.verticalAlignment = CPDFBackgroundVerticalAlignment.center,
  this.horizontalOffset = 0,
  this.verticalOffset = 0,
  this.allowView = true,
  this.allowPrint = true,
})  : type = CPDFBackgroundType.color,
      imagePath = null;