ZipFile class
Utility class for creating and extracting zip archive files.
Constructors
- ZipFile()
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
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
tozipFile
. -
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 tozipFile
.sourceDir
is the root directory offiles
(allfiles
must reside under thesourceDir
). -
extractToDirectory(
{required File zipFile, required Directory destinationDir, OnExtracting? onExtracting, String? zipFileCharset}) → Future< void> -
Extract
zipFile
to a givendestinationDir
. Optional callback functiononExtracting
is called before extracting a zip entry.