PdfViewerParams class Null safety

Annotations

Constructors

PdfViewerParams({int? pageNumber, double? padding, LayoutPagesFunc? layoutPages, BuildPageContentFunc? buildPagePlaceholder, BuildPageContentFunc? buildPageOverlay, BoxDecoration? pageDecoration, bool alignPanAxis = false, EdgeInsets boundaryMargin = EdgeInsets.zero, double maxScale = 20, double minScale = 0.1, GestureScaleEndCallback? onInteractionEnd, GestureScaleStartCallback? onInteractionStart, GestureScaleUpdateCallback? onInteractionUpdate, bool panEnabled = true, bool scaleEnabled = true, OnPdfViewerControllerInitialized? onViewerControllerInitialized})
Initializes the parameters.

Properties

alignPanAxis bool
See InteractiveViewer for more info.
final
boundaryMargin EdgeInsets
See InteractiveViewer for more info.
final
buildPageOverlay BuildPageContentFunc?
Custom overlay that is shown on page. For example, drawings, annotations on pages.
final
buildPagePlaceholder BuildPageContentFunc?
Custom page placeholder that is shown until the page is fully loaded.
final
hashCode int
The hash code for this object. [...]
read-only, override
layoutPages LayoutPagesFunc?
Custom page layout logic if you need it.
final
maxScale double
See InteractiveViewer for more info.
final
minScale double
See InteractiveViewer for more info.
final
onInteractionEnd GestureScaleEndCallback?
See InteractiveViewer for more info.
final
onInteractionStart GestureScaleStartCallback?
See InteractiveViewer for more info.
final
onInteractionUpdate GestureScaleUpdateCallback?
See InteractiveViewer for more info.
final
onViewerControllerInitialized OnPdfViewerControllerInitialized?
Callback that is called on viewer initialization to notify the actual PdfViewerController used by the viewer regardless of specifying viewerController.
final
padding double?
Padding for the every page.
final
pageDecoration BoxDecoration?
Custom page decoration such as drop-shadow.
final
pageNumber int?
Page number to show on the first time.
final
panEnabled bool
See InteractiveViewer for more info.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scaleEnabled bool
See InteractiveViewer for more info.
final

Methods

copyWith({int? pageNumber, double? padding, LayoutPagesFunc? layoutPages, BuildPageContentFunc? buildPagePlaceholder, BuildPageContentFunc? buildPageOverlay, BoxDecoration? pageDecoration, bool? alignPanAxis, EdgeInsets? boundaryMargin, bool? panEnabled, bool? scaleEnabled, double? maxScale, double? minScale, GestureScaleEndCallback? onInteractionEnd, GestureScaleStartCallback? onInteractionStart, GestureScaleUpdateCallback? onInteractionUpdate, OnPdfViewerControllerInitialized? onViewerControllerInitialized}) PdfViewerParams
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object o) bool
The equality operator. [...]
override