AsyncCompressor constructor

AsyncCompressor({
  1. required String name,
  2. required Future<Result<Uint8List, IoError>> compress({
    1. required Input input,
    }),
  3. required Future<Result<Uint8List, IoError>> decompress({
    1. required Input input,
    }),
  4. required Future<Result<IoSuccess, IoError>> compressFile({
    1. required Input input,
    2. required String outputPath,
    }),
  5. required Future<Result<IoSuccess, IoError>> decompressFile({
    1. required Input input,
    2. required String outputPath,
    }),
})

Implementation

AsyncCompressor({
  required this.name,
  required this.compress,
  required this.decompress,
  required this.compressFile,
  required this.decompressFile,
});