CompressionOptions constructor
const
CompressionOptions({})
Creates a new CompressionOptions instance.
Implementation
const CompressionOptions({
this.maxBytes,
this.quality = 85,
this.minQuality = 10,
this.maxWidth,
this.maxHeight,
this.format = OutputFormat.preserve,
this.autoOrientation = true,
this.keepExif = false,
}) : assert(quality >= 1 && quality <= 100, 'quality must be between 1 and 100'),
assert(minQuality >= 1 && minQuality <= quality, 'minQuality must be between 1 and quality');