PdfPrintAction constructor

const PdfPrintAction({
  1. Key? key,
  2. Widget? icon,
  3. String? jobName,
  4. VoidCallback? onPrinted,
  5. void onPrintError(
    1. dynamic error
    )?,
  6. bool dynamicLayout = true,
  7. bool usePrinterSettings = false,
})

Implementation

const PdfPrintAction({
  super.key,
  Widget? icon,
  String? jobName,
  this.onPrinted,
  this.onPrintError,
  this.dynamicLayout = true,
  this.usePrinterSettings = false,
})  : icon = icon ?? const Icon(Icons.print),
      jobName = jobName ?? 'Document';