ComicsFileCodec class abstract final

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 .comics bytes: the contract reader validates the archive (entry names, data.json schema) first; with extractTo every entry is written below that directory. Throws FreedomeException (ValidationException / UnsupportedFormatException) for a file the contract refuses.
encode(Comics comics, {Map<String, List<int>> files = const {}}) → Uint8List
Encodes comics with its asset files (archive-relative layers/… / 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 name is a relative, /-separated archive path without .. (02e §9 entry rules).