CustomPdfViewer.file constructor

CustomPdfViewer.file(
  1. String path, {
  2. Key? key,
})

Loads a PDF from a local device file path.

Implementation

factory CustomPdfViewer.file(String path, {Key? key}) {
  return CustomPdfViewer._(
    key: key,
    source: path,
    sourceType: PdfSourceType.file,
  );
}