PackedResource class abstract
Base class used by all PackedResources.
Constructors
- PackedResource()
-
Creates a resource backed by compressed parts or legacy Base64 content.
const
Properties
- checksum → String
-
The checksum of the original file.
You can use this value to see if packed file
is different to a local file without having to unpack
it.
no setter
- content → String
-
Legacy Base64 content. New resources expose compressed parts instead.
Use unpack for both formats without assembling a file in memory.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- originalPath → String
-
The path to the original file relative to the
packages resource directory.
no setter
-
parts
→ Iterable<
PackedResourcePart> ? -
Independently compressed parts, in their original order.
no setter
- 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
-
unpack(
String pathTo) → void -
Unpacks a resource saving it
to the file at
pathTo. Throws ResourceException. @Throwing(ArgumentError) @Throwing(CreateDirException) @Throwing(ResourceException) @Throwing(FormatException) @Throwing(RangeError)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited