copyWith method
CloudMediaConfig
copyWith({
- int? maxCacheSizeMb,
- int? imageQuality,
- int? thumbnailSize,
- int? maxSelection,
- bool? enableOfflineSync,
- bool? enableReviewScreen,
- bool? enableBackgroundRemoval,
- Duration? uploadTimeout,
- int? maxRetries,
- bool? autoGenerateThumbnails,
- bool? compressAutomatically,
- bool? enableVideoCompression,
- int? videoCompressionBitrate,
- bool? enableLogging,
- String? customStorageBucket,
Creates a copy of this config with the given fields replaced.
Implementation
CloudMediaConfig copyWith({
int? maxCacheSizeMb,
int? imageQuality,
int? thumbnailSize,
int? maxSelection,
bool? enableOfflineSync,
bool? enableReviewScreen,
bool? enableBackgroundRemoval,
Duration? uploadTimeout,
int? maxRetries,
bool? autoGenerateThumbnails,
bool? compressAutomatically,
bool? enableVideoCompression,
int? videoCompressionBitrate,
bool? enableLogging,
String? customStorageBucket,
}) {
return CloudMediaConfig(
maxCacheSizeMb: maxCacheSizeMb ?? this.maxCacheSizeMb,
imageQuality: imageQuality ?? this.imageQuality,
thumbnailSize: thumbnailSize ?? this.thumbnailSize,
maxSelection: maxSelection ?? this.maxSelection,
enableOfflineSync: enableOfflineSync ?? this.enableOfflineSync,
enableReviewScreen: enableReviewScreen ?? this.enableReviewScreen,
enableBackgroundRemoval:
enableBackgroundRemoval ?? this.enableBackgroundRemoval,
uploadTimeout: uploadTimeout ?? this.uploadTimeout,
maxRetries: maxRetries ?? this.maxRetries,
autoGenerateThumbnails:
autoGenerateThumbnails ?? this.autoGenerateThumbnails,
compressAutomatically:
compressAutomatically ?? this.compressAutomatically,
enableVideoCompression:
enableVideoCompression ?? this.enableVideoCompression,
videoCompressionBitrate:
videoCompressionBitrate ?? this.videoCompressionBitrate,
enableLogging: enableLogging ?? this.enableLogging,
customStorageBucket: customStorageBucket ?? this.customStorageBucket,
);
}