NicePrintPreview constructor

const NicePrintPreview({
  1. Key? key,
  2. required Widget content,
  3. String? title,
  4. String? subtitle,
  5. void onPrint()?,
  6. void onCancel()?,
  7. NicePageOrientation orientation = NicePageOrientation.portrait,
  8. NicePageSize pageSize = NicePageSize.a4,
  9. EdgeInsets? margins,
  10. bool showHeader = true,
  11. bool showFooter = true,
  12. bool showPageNumbers = true,
})

Implementation

const NicePrintPreview({
  super.key,
  required this.content,
  this.title,
  this.subtitle,
  this.onPrint,
  this.onCancel,
  this.orientation = NicePageOrientation.portrait,
  this.pageSize = NicePageSize.a4,
  this.margins,
  this.showHeader = true,
  this.showFooter = true,
  this.showPageNumbers = true,
});