CloudMediaConfig constructor

const CloudMediaConfig({
  1. int maxCacheSizeMb = 500,
  2. int imageQuality = 85,
  3. int thumbnailSize = 200,
  4. int maxSelection = 20,
  5. bool enableOfflineSync = true,
  6. bool enableReviewScreen = true,
  7. bool enableBackgroundRemoval = true,
  8. Duration uploadTimeout = const Duration(minutes: 5),
  9. int maxRetries = 3,
  10. bool autoGenerateThumbnails = true,
  11. bool compressAutomatically = true,
  12. bool enableVideoCompression = false,
  13. int videoCompressionBitrate = 1000000,
  14. bool enableLogging = false,
  15. 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,
});