toZipBytes method
archive to zip bytes
Implementation
List<int>? toZipBytes({
required String? password,
int level = Deflate.DEFAULT_COMPRESSION,
OutputStreamBase? output,
DateTime? modified,
bool autoClose = true,
}) {
final ZipEncoder zipEncoder = ZipEncoder(
password: password,
);
return zipEncoder.encode(
archive,
level: level,
modified: modified ?? DateTime.now(),
autoClose: autoClose,
);
}