Reads / writes .comics (ZIP: data.json + layers/ tiles + sounds/) — additive in 1.2.0.
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
-
decode(
Uint8List bytes, {String? extractTo}) → Future< Comics> -
Decodes
.comicsbytes: the contract reader validates the archive (entry names,data.jsonschema) first; withextractToevery entry is written below that directory. ThrowsFreedomeException(ValidationException/UnsupportedFormatException) for a file the contract refuses. -
encode(
Comics comics, {Map< String, List< files = const {}}) → Uint8Listint> > -
Encodes
comicswith its assetfiles(archive-relativelayers/…/sounds/…→ bytes). -
filesOf(
String dir) → Future< Map< String, List< >int> > -
The files of a working folder (
dir/layers,dir/sounds) as archive entries. -
isSafeEntryName(
String name) → bool -
Whether
nameis a relative,/-separated archive path without..(02e §9 entry rules).