copyWith method
PdfViewerParams
copyWith({
- int? pageNumber,
- double? padding,
- LayoutPagesFunc? layoutPages,
- BuildPageContentFunc? buildPagePlaceholder,
- BuildPageContentFunc? buildPageOverlay,
- BoxDecoration? pageDecoration,
- Axis? scrollDirection,
- PanAxis? panAxis,
- bool? alignPanAxis,
- EdgeInsets? boundaryMargin,
- bool? panEnabled,
- bool? scaleEnabled,
- double? maxScale,
- double? minScale,
- GestureScaleEndCallback? onInteractionEnd,
- GestureScaleStartCallback? onInteractionStart,
- GestureScaleUpdateCallback? onInteractionUpdate,
- OnPdfViewerControllerInitialized? onViewerControllerInitialized,
- double? scrollByMouseWheel,
Implementation
PdfViewerParams copyWith({
int? pageNumber,
double? padding,
LayoutPagesFunc? layoutPages,
BuildPageContentFunc? buildPagePlaceholder,
BuildPageContentFunc? buildPageOverlay,
BoxDecoration? pageDecoration,
Axis? scrollDirection,
PanAxis? panAxis,
bool? alignPanAxis,
EdgeInsets? boundaryMargin,
bool? panEnabled,
bool? scaleEnabled,
double? maxScale,
double? minScale,
GestureScaleEndCallback? onInteractionEnd,
GestureScaleStartCallback? onInteractionStart,
GestureScaleUpdateCallback? onInteractionUpdate,
OnPdfViewerControllerInitialized? onViewerControllerInitialized,
double? scrollByMouseWheel,
}) =>
PdfViewerParams(
pageNumber: pageNumber ?? this.pageNumber,
padding: padding ?? this.padding,
layoutPages: layoutPages ?? this.layoutPages,
buildPagePlaceholder: buildPagePlaceholder ?? this.buildPagePlaceholder,
buildPageOverlay: buildPageOverlay ?? this.buildPageOverlay,
pageDecoration: pageDecoration ?? this.pageDecoration,
scrollDirection: scrollDirection ?? this.scrollDirection,
panAxis: panAxis ?? this.panAxis,
alignPanAxis: alignPanAxis ?? this.alignPanAxis,
boundaryMargin: boundaryMargin ?? this.boundaryMargin,
panEnabled: panEnabled ?? this.panEnabled,
scaleEnabled: scaleEnabled ?? this.scaleEnabled,
maxScale: maxScale ?? this.maxScale,
minScale: minScale ?? this.minScale,
onInteractionEnd: onInteractionEnd ?? this.onInteractionEnd,
onInteractionStart: onInteractionStart ?? this.onInteractionStart,
onInteractionUpdate: onInteractionUpdate ?? this.onInteractionUpdate,
onViewerControllerInitialized:
onViewerControllerInitialized ?? this.onViewerControllerInitialized,
scrollByMouseWheel: scrollByMouseWheel ?? this.scrollByMouseWheel,
);