create method

Future<void> create(
  1. File file, {
  2. int compressionLevel = kDefaultCompressionLevel,
})

Creates a new Zip archive in the speficied file.

The compressionLevel indicates how much an item in the archive will be compressed. It ranges from 0 (no compression) to 9 (maximum compression).

Throws a ZipException if the file cannot be created.

Implementation

Future<void> create(File file,
        {int compressionLevel = kDefaultCompressionLevel}) =>
    _manager.sendRequest<void>(_RequestType.create, [file, compressionLevel]);