PdfViewer.openAsset constructor

PdfViewer.openAsset(
  1. String assetPath, {
  2. Key? key,
  3. PdfViewerController? viewerController,
  4. PdfViewerParams? params,
  5. 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,
    );