PdfDocumentLoader.openAsset constructor
PdfDocumentLoader.openAsset(
- String assetName, {
- Key? key,
- PdfDocumentBuilder? documentBuilder,
- int? pageNumber,
- PdfPageBuilder? pageBuilder,
- dynamic onError(
- dynamic
Load PDF document from asset.
For additional parameters, see PdfDocumentLoader.
Implementation
factory PdfDocumentLoader.openAsset(
String assetName, {
Key? key,
PdfDocumentBuilder? documentBuilder,
int? pageNumber,
PdfPageBuilder? pageBuilder,
Function(dynamic)? onError,
}) =>
PdfDocumentLoader(
key: key,
doc: PdfDocument.openAsset(assetName),
documentBuilder: documentBuilder,
pageNumber: pageNumber,
pageBuilder: pageBuilder,
onError: onError,
);