PDF constructor
const
PDF({
- 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
const PDF({
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,
});