copyWith method
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,
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,
);