ZLibCodec constructor

ZLibCodec(
  1. {int level = ZLibOption.defaultLevel,
  2. int windowBits = ZLibOption.defaultWindowBits,
  3. int memLevel = ZLibOption.defaultMemLevel,
  4. int strategy = ZLibOption.strategyDefault,
  5. List<int>? dictionary,
  6. bool raw = false,
  7. bool gzip = false}
)

Implementation

ZLibCodec(
    {this.level = ZLibOption.defaultLevel,
    this.windowBits = ZLibOption.defaultWindowBits,
    this.memLevel = ZLibOption.defaultMemLevel,
    this.strategy = ZLibOption.strategyDefault,
    this.dictionary,
    this.raw = false,
    this.gzip = false}) {
  _validateZLibeLevel(level);
  _validateZLibMemLevel(memLevel);
  _validateZLibStrategy(strategy);
  _validateZLibWindowBits(windowBits);
}