PDFView constructor
PDFView({
- Key? key,
- String? filePath,
- Uint8List? pdfData,
- PDFViewCreatedCallback? onViewCreated,
- RenderCallback? onRender,
- PageChangedCallback? onPageChanged,
- ErrorCallback? onError,
- PageErrorCallback? onPageError,
- LinkHandlerCallback? onLinkHandler,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> > - bool enableSwipe = true,
- bool swipeHorizontal = false,
- String? password,
- bool nightMode = false,
- bool autoSpacing = true,
- bool pageFling = true,
- bool pageSnap = true,
- bool fitEachPage = true,
- int defaultPage = 0,
- FitPolicy fitPolicy = FitPolicy.WIDTH,
Implementation
PDFView({
Key? key,
this.filePath,
this.pdfData,
this.onViewCreated,
this.onRender,
this.onPageChanged,
this.onError,
this.onPageError,
this.onLinkHandler,
this.gestureRecognizers,
this.enableSwipe = true,
this.swipeHorizontal = false,
this.password,
this.nightMode = false,
this.autoSpacing = true,
this.pageFling = true,
this.pageSnap = true,
this.fitEachPage = true,
this.defaultPage = 0,
this.fitPolicy = FitPolicy.WIDTH,
this.preventLinkNavigation = false,
}) : assert(filePath != null || pdfData != null),
super(key: key);