ArchiveFile class Null safety

A file contained in an Archive.

Constructors

ArchiveFile(String name, int size, dynamic content, [int? _compressionType = STORE])
ArchiveFile.noCompress(String name, int size, dynamic content)
ArchiveFile.stream(String name, int size, InputStreamBase contentStream)
ArchiveFile.string(String name, String content, [int? _compressionType = STORE])

Properties

comment String?
read / write
compress bool
If false, this file will not be compressed when encoded to an archive format such as zip.
read / write
compressionType int?
What type of compression is the raw data stored in
read-only
content → dynamic
Get the content of the file, decompressing on demand as necessary.
read-only
crc32 int?
The crc32 checksum of the uncompressed content.
read / write
groupId int
read / write
hashCode int
The hash code for this object.
read-onlyinherited
isCompressed bool
Is the data stored by this file currently compressed?
read-only
isFile bool
If false, this is a directory.
read / write
If true, this is a symbolic link to the file specified in nameOfLinkedFile
read / write
lastModTime int
Seconds since epoch
read / write
mode int
read / write
name String
read / write
nameOfLinkedFile String
If this is a symbolic link, this is the path to the file its linked to.
read / write
ownerId int
read / write
rawContent InputStreamBase?
Get the content without decompressing it first.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
size int
The uncompressed size of the file
read / write
unixPermissions int
read-only

Methods

clear() → void
close() Future<void>
decompress([OutputStreamBase? output]) → void
If the file data is compressed, decompress it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
writeContent(OutputStreamBase output, {bool freeMemory = true}) → void

Operators

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

Constants

DEFLATE → const int
8
STORE → const int
0