ZipFile class Null safety

Utility class for creating and extracting zip archive files.

Constructors

ZipFile()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

createFromDirectory({required Directory sourceDir, required File zipFile, bool includeBaseDirectory = false, bool recurseSubDirs = true, OnZipping? onZipping}) Future<void>
Compress and save all files in sourceDir to zipFile.
createFromFiles({required Directory sourceDir, required List<File> files, required File zipFile, bool includeBaseDirectory = false}) Future<void>
Compress given list of files and save the resulted archive to zipFile. sourceDir is the root directory of files (all files must reside under the sourceDir).
extractToDirectory({required File zipFile, required Directory destinationDir, OnExtracting? onExtracting, String? zipFileCharset}) Future<void>
Extract zipFile to a given destinationDir. Optional callback function onExtracting is called before extracting a zip entry.