ImageCompression.custom constructor

const ImageCompression.custom(
  1. int value
)

Creates a custom image quality level with a specified value.

The value must be between 0 and 100.

Implementation

const ImageCompression.custom(this.value)
    : assert(
          value >= 0 && value <= 100, 'Quality must be between 0 and 100.');