CloudMediaConfig constructor
const
CloudMediaConfig({
- int maxCacheSizeMb = 500,
- int imageQuality = 85,
- int thumbnailSize = 200,
- int maxSelection = 20,
- bool enableOfflineSync = true,
- bool enableReviewScreen = true,
- bool enableBackgroundRemoval = true,
- Duration uploadTimeout = const Duration(minutes: 5),
- int maxRetries = 3,
- bool autoGenerateThumbnails = true,
- bool compressAutomatically = true,
- bool enableVideoCompression = false,
- int videoCompressionBitrate = 1000000,
- bool enableLogging = false,
- String? customStorageBucket,
Creates a CloudMediaConfig with the given settings.
All parameters have sensible defaults and are optional.
Implementation
const CloudMediaConfig({
this.maxCacheSizeMb = 500,
this.imageQuality = 85,
this.thumbnailSize = 200,
this.maxSelection = 20,
this.enableOfflineSync = true,
this.enableReviewScreen = true,
this.enableBackgroundRemoval = true,
this.uploadTimeout = const Duration(minutes: 5),
this.maxRetries = 3,
this.autoGenerateThumbnails = true,
this.compressAutomatically = true,
this.enableVideoCompression = false,
this.videoCompressionBitrate = 1000000,
this.enableLogging = false,
this.customStorageBucket,
});