ZLibEncoder constructor Null safety

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

Implementation

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