Compression.withQuality constructor
Creates compression from quality.
Implementation
const Compression.withQuality(
this.quality, {
this.maxFileSize = 0,
this.minWidth = 1920,
this.minHeight = 1080,
}) : inSampleSize = 1,
rotate = 0,
autoCorrectionAngle = true,
keepExif = false,
numberOfRetries = 5,
format = CompressFormat.jpeg,
assert(1 <= quality && quality <= 100, 'quality must be between 1 and 100.'),
assert(minWidth > 0, 'minWidth must be greater than 0.'),
assert(minHeight > 0, 'minHeight must be greater than 0.');