PdfViewer.openFile constructor
PdfViewer.openFile(
- String filePath, {
- Key? key,
- PdfViewerController? viewerController,
- PdfViewerParams? params,
- OnError? onError,
Open a file.
Implementation
factory PdfViewer.openFile(
String filePath, {
Key? key,
PdfViewerController? viewerController,
PdfViewerParams? params,
OnError? onError,
}) =>
PdfViewer(
key: key,
doc: PdfDocument.openFile(filePath),
viewerController: viewerController,
params: params,
onError: onError,
);