copyWith method
ImageGeneratioConfigs
copyWith({
- bool? captureOnlyBackgroundImageArea,
- bool? allowEmptyEditCompletion,
- bool? generateInsideSeparateThread,
- bool? generateImageInBackground,
- bool? captureOnlyDrawingBounds,
- bool? awaitLoadingDialogContext,
- double? customPixelRatio,
- ProcessorConfigs? processorConfigs,
- OutputFormat? outputFormat,
- bool? singleFrame,
- int? pngLevel,
- PngFilter? pngFilter,
- int? jpegQuality,
- Size? maxOutputSize,
- Size? maxThumbnailSize,
- JpegChroma? jpegChroma,
Creates a copy of this object with the given fields replaced with the new values.
The copyWith method allows you to create a new instance of ImageGeneratioConfigs with some properties updated while keeping the others unchanged.
Implementation
ImageGeneratioConfigs copyWith({
bool? captureOnlyBackgroundImageArea,
bool? allowEmptyEditCompletion,
bool? generateInsideSeparateThread,
bool? generateImageInBackground,
bool? captureOnlyDrawingBounds,
bool? awaitLoadingDialogContext,
double? customPixelRatio,
ProcessorConfigs? processorConfigs,
OutputFormat? outputFormat,
bool? singleFrame,
int? pngLevel,
PngFilter? pngFilter,
int? jpegQuality,
Size? maxOutputSize,
Size? maxThumbnailSize,
JpegChroma? jpegChroma,
}) {
return ImageGeneratioConfigs(
captureOnlyBackgroundImageArea:
captureOnlyBackgroundImageArea ?? this.captureOnlyBackgroundImageArea,
allowEmptyEditCompletion:
allowEmptyEditCompletion ?? this.allowEmptyEditCompletion,
generateInsideSeparateThread:
generateInsideSeparateThread ?? this.generateInsideSeparateThread,
generateImageInBackground:
generateImageInBackground ?? this.generateImageInBackground,
captureOnlyDrawingBounds:
captureOnlyDrawingBounds ?? this.captureOnlyDrawingBounds,
awaitLoadingDialogContext:
awaitLoadingDialogContext ?? this.awaitLoadingDialogContext,
customPixelRatio: customPixelRatio ?? this.customPixelRatio,
processorConfigs: processorConfigs ?? this.processorConfigs,
outputFormat: outputFormat ?? this.outputFormat,
singleFrame: singleFrame ?? this.singleFrame,
pngLevel: pngLevel ?? this.pngLevel,
pngFilter: pngFilter ?? this.pngFilter,
jpegQuality: jpegQuality ?? this.jpegQuality,
maxOutputSize: maxOutputSize ?? this.maxOutputSize,
maxThumbnailSize: maxThumbnailSize ?? this.maxThumbnailSize,
jpegChroma: jpegChroma ?? this.jpegChroma,
);
}