InnoSetupCompression.range constructor

InnoSetupCompression.range(
  1. String name,
  2. int range
)

Defines a compression with a name and possible range.

Compression range must be in between 1 and 9.

const zip = InnoSetupCompression.range('zip', 2);  // -> zip/2

Implementation

factory InnoSetupCompression.range(String name, int range) {
  assert(
    range >= 1 && range <= 9,
    'Compression range must be in between 1 and 9.',
  );
  return InnoSetupCompression('$name/$range');
}