PdfViewer constructor
const
PdfViewer(
- PdfDocumentRef documentRef, {
- Key? key,
- PdfViewerController? controller,
- PdfViewerParams params = const PdfViewerParams(),
- int initialPageNumber = 1,
Create PdfViewer from a PdfDocumentRef.
documentRef is the PdfDocumentRef. controller is the controller to control the viewer. params is the parameters to customize the viewer. initialPageNumber is the page number to show initially.
Implementation
const PdfViewer(
this.documentRef, {
super.key,
this.controller,
this.params = const PdfViewerParams(),
this.initialPageNumber = 1,
});