Quality constructor

Quality(
  1. dynamic level, {
  2. bool anyFormat = false,
})

Controls the JPEG, WebP, GIF, JPEG XR and JPEG 2000 compression quality.

Reducing the quality is a trade-off between visual quality and file size.

Receives dynamic level The quality level. 1 is the lowest quality and 100 is the highest.

Implementation

Quality(this.level, {bool anyFormat = false}) {
  _anyFormat = anyFormat;
}