PDFView constructor

const PDFView({
  1. Key? key,
  2. required String filePath,
  3. PDFViewCreatedCallback? onViewCreated,
  4. RenderCallback? onRender,
  5. PageChangedCallback? onPageChanged,
  6. ErrorCallback? onError,
  7. PageErrorCallback? onPageError,
  8. ZoomChangedCallback? onZoomChanged,
  9. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  10. bool dualPageMode = false,
  11. bool displayAsBook = false,
  12. bool dualPageWithBreak = false,
  13. FitPolicy fitPolicy = FitPolicy.BOTH,
  14. bool fitEachPage = true,
  15. bool enableSwipe = true,
  16. bool swipeHorizontal = false,
  17. String? password,
  18. bool nightMode = false,
  19. bool autoSpacing = true,
  20. bool pageFling = true,
  21. bool pageSnap = true,
  22. int defaultPage = 0,
  23. 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);