UCPDFView constructor

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

Implementation

UCPDFView(
    {Key? key,
    this.filePath,
    this.pdfData,
    this.isLocalFilePath = true,
    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});