PDF constructor

const PDF({
  1. PDFViewCreatedCallback? onViewCreated,
  2. RenderCallback? onRender,
  3. PageChangedCallback? onPageChanged,
  4. ErrorCallback? onError,
  5. PageErrorCallback? onPageError,
  6. LinkHandlerCallback? onLinkHandler,
  7. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  8. bool enableSwipe = true,
  9. bool swipeHorizontal = false,
  10. String? password,
  11. bool nightMode = false,
  12. bool autoSpacing = true,
  13. bool pageFling = true,
  14. bool pageSnap = true,
  15. bool fitEachPage = true,
  16. int defaultPage = 0,
  17. FitPolicy fitPolicy = FitPolicy.WIDTH,
  18. bool preventLinkNavigation = false,
})

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,
});