saveSelected method
Saves the PDF where the user chooses, through the system save dialog.
Returns the saved file's name or path, or null when the user cancels.
Implementation
Future<String?> saveSelected(BuildContext context) async {
final dialogTitle = context.reportL10n.printSavePdf;
final bytes = await PrintPdfRenderer.render(request(context));
return saveFileWithDialog(
dialogTitle: dialogTitle,
fileName: '$_fileName.pdf',
bytes: bytes,
mimeType: 'application/pdf',
);
}