copyWith method

UDocViewSettings copyWith({
  1. UDocScrollMode? scrollMode,
  2. UDocSpread? spread,
  3. UDocDirection? direction,
  4. UDocFit? fit,
  5. UDocColorMode? colorMode,
  6. double? zoom,
  7. double? minZoom,
  8. double? maxZoom,
  9. double? dim,
  10. double? pageGap,
  11. bool? cropMargins,
  12. double? tileThreshold,
  13. double? maxRenderScale,
  14. int? renderAhead,
  15. bool? keepScreenOn,
  16. bool? showAnnotations,
  17. bool? showForms,
  18. List<double>? customMatrix,
})

Implementation

UDocViewSettings copyWith({
  UDocScrollMode? scrollMode,
  UDocSpread? spread,
  UDocDirection? direction,
  UDocFit? fit,
  UDocColorMode? colorMode,
  double? zoom,
  double? minZoom,
  double? maxZoom,
  double? dim,
  double? pageGap,
  bool? cropMargins,
  double? tileThreshold,
  double? maxRenderScale,
  int? renderAhead,
  bool? keepScreenOn,
  bool? showAnnotations,
  bool? showForms,
  List<double>? customMatrix,
}) => UDocViewSettings(
  scrollMode: scrollMode ?? this.scrollMode,
  spread: spread ?? this.spread,
  direction: direction ?? this.direction,
  fit: fit ?? this.fit,
  colorMode: colorMode ?? this.colorMode,
  zoom: zoom ?? this.zoom,
  minZoom: minZoom ?? this.minZoom,
  maxZoom: maxZoom ?? this.maxZoom,
  dim: dim ?? this.dim,
  pageGap: pageGap ?? this.pageGap,
  cropMargins: cropMargins ?? this.cropMargins,
  tileThreshold: tileThreshold ?? this.tileThreshold,
  maxRenderScale: maxRenderScale ?? this.maxRenderScale,
  renderAhead: renderAhead ?? this.renderAhead,
  keepScreenOn: keepScreenOn ?? this.keepScreenOn,
  showAnnotations: showAnnotations ?? this.showAnnotations,
  showForms: showForms ?? this.showForms,
  customMatrix: customMatrix ?? this.customMatrix,
);