PdfViewer.openAsset constructor
PdfViewer.openAsset(
- String assetPath, {
- Key? key,
- PdfViewerController? viewerController,
- PdfViewerParams? params,
- OnError? onError,
Open an asset.
Implementation
factory PdfViewer.openAsset(
String assetPath, {
Key? key,
PdfViewerController? viewerController,
PdfViewerParams? params,
OnError? onError,
}) =>
PdfViewer(
key: key,
doc: PdfDocument.openAsset(assetPath),
viewerController: viewerController,
params: params,
onError: onError,
);