PdfViewerParams constructor

const PdfViewerParams({
  1. int? pageNumber,
  2. double? padding,
  3. LayoutPagesFunc? layoutPages,
  4. BuildPageContentFunc? buildPagePlaceholder,
  5. BuildPageContentFunc? buildPageOverlay,
  6. BoxDecoration? pageDecoration,
  7. Axis scrollDirection = Axis.vertical,
  8. PanAxis panAxis = PanAxis.free,
  9. bool alignPanAxis = false,
  10. EdgeInsets boundaryMargin = EdgeInsets.zero,
  11. double maxScale = 20,
  12. double minScale = 0.1,
  13. bool allowAntialiasingIOS = true,
  14. GestureScaleEndCallback? onInteractionEnd,
  15. GestureScaleStartCallback? onInteractionStart,
  16. GestureScaleUpdateCallback? onInteractionUpdate,
  17. bool panEnabled = true,
  18. bool scaleEnabled = true,
  19. OnPdfViewerControllerInitialized? onViewerControllerInitialized,
  20. double interactionEndFrictionCoefficient = 0.0000135,
})

Initializes the parameters.

Implementation

const PdfViewerParams(
    {this.pageNumber,
    this.padding,
    this.layoutPages,
    this.buildPagePlaceholder,
    this.buildPageOverlay,
    this.pageDecoration,
    this.scrollDirection = Axis.vertical,
    this.panAxis = PanAxis.free,
    this.alignPanAxis = false,
    this.boundaryMargin = EdgeInsets.zero,
    this.maxScale = 20,
    this.minScale = 0.1,
    this.allowAntialiasingIOS = true,
    this.onInteractionEnd,
    this.onInteractionStart,
    this.onInteractionUpdate,
    this.panEnabled = true,
    this.scaleEnabled = true,
    this.onViewerControllerInitialized,
    this.interactionEndFrictionCoefficient = 0.0000135});