doChangesRequireReload method

bool doChangesRequireReload(
  1. PdfViewerParams? other
)

Determine whether the viewer needs to be reloaded or not.

Implementation

bool doChangesRequireReload(PdfViewerParams? other) {
  return other == null ||
      forceReload ||
      other.margin != margin ||
      other.backgroundColor != backgroundColor ||
      other.maxScale != maxScale ||
      other.minScale != minScale ||
      other.useAlternativeFitScaleAsMinScale !=
          useAlternativeFitScaleAsMinScale ||
      other.panAxis != panAxis ||
      other.boundaryMargin != boundaryMargin ||
      other.annotationRenderingMode != annotationRenderingMode ||
      other.pageAnchor != pageAnchor ||
      other.pageAnchorEnd != pageAnchorEnd ||
      other.onePassRenderingScaleThreshold !=
          onePassRenderingScaleThreshold ||
      other.enableTextSelection != enableTextSelection ||
      other.matchTextColor != matchTextColor ||
      other.activeMatchTextColor != activeMatchTextColor ||
      other.pageDropShadow != pageDropShadow ||
      other.panEnabled != panEnabled ||
      other.scaleEnabled != scaleEnabled ||
      other.scrollByMouseWheel != scrollByMouseWheel ||
      other.enableKeyboardNavigation != enableKeyboardNavigation ||
      other.scrollByArrowKey != scrollByArrowKey ||
      other.horizontalCacheExtent != horizontalCacheExtent ||
      other.verticalCacheExtent != verticalCacheExtent;
}