writeData method

Future<void> writeData(
  1. String name,
  2. Uint8List data, {
  3. bool compress = true,
})

Writes the specified data as a Zip archive entry name.

Compression can be disabled using the compress argument. This can be useful for data that is already compressed such as a JPEG image.

Throws a ZipException if the operation fails.

Implementation

Future<void> writeData(String name, Uint8List data, {bool compress = true}) =>
    _manager
        .sendRequest<void>(_RequestType.writeData, [name, data, compress]);