PDFView constructor
const
PDFView({
- Key? key,
- required String filePath,
- PDFViewCreatedCallback? onViewCreated,
- RenderCallback? onRender,
- PageChangedCallback? onPageChanged,
- ErrorCallback? onError,
- PageErrorCallback? onPageError,
- ZoomChangedCallback? onZoomChanged,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> > - bool dualPageMode = false,
- bool displayAsBook = false,
- bool dualPageWithBreak = false,
- FitPolicy fitPolicy = FitPolicy.BOTH,
- bool fitEachPage = true,
- bool enableSwipe = true,
- bool swipeHorizontal = false,
- String? password,
- bool nightMode = false,
- bool autoSpacing = true,
- bool pageFling = true,
- bool pageSnap = true,
- int defaultPage = 0,
- bgcolors backgroundColor = bgcolors.WHITE,
Implementation
const PDFView({
Key? key,
required this.filePath,
this.onViewCreated,
this.onRender,
this.onPageChanged,
this.onError,
this.onPageError,
this.onZoomChanged,
this.gestureRecognizers,
this.dualPageMode = false,
this.displayAsBook = false,
this.dualPageWithBreak = false,
this.fitPolicy = FitPolicy.BOTH,
this.fitEachPage = true,
this.enableSwipe = true,
this.swipeHorizontal = false,
this.password,
this.nightMode = false,
this.autoSpacing = true,
this.pageFling = true,
this.pageSnap = true,
this.defaultPage = 0,
this.backgroundColor = bgcolors.WHITE,
}) : super(key: key);