ZipFileEncoder class

Writes zip files from folders on disk.

Only zipDirectory from package:archive's ZipFileEncoder is provided. For other cases, build an Archive and use ZipEncoder.

Constructors

ZipFileEncoder()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
zipDirectory(Directory dir, {String? filename, int? level}) → Future<void>
Zips every file and folder in dir (names are relative to dir; symbolic links are followed) to filename, by default <dir>.zip. level is 0 to 9 (default 6). Small files are compressed in parallel batches and large files are streamed, so memory stays bounded.
zipDirectoryAsync(Directory dir, {String? filename, int? level}) → Future<void>
Same as zipDirectory.

Operators

operator ==(Object other) → bool
The equality operator.
inherited