Comics class

Основная модель комикса

Annotations
  • @JsonSerializable.new()

Constructors

Comics({int width = 1080, int height = 2160, List<Layer>? layers, List<Sound>? sounds})
Comics.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
height ↔ int
getter/setter pair
layers ↔ List<Layer>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sounds ↔ List<Sound>
getter/setter pair
width ↔ int
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publishToDome(FreedomeClient client, {String name = 'comics.comics'}) → Future<AssetResource>
Uploads this comics (with the working folder's assets) to a dome as a comics asset (additive in 1.2.0).
save() → Future<void>
Saves data.json into the editor's working folder (FileManager.tempFolder, next to layers/ and sounds/; 1.1.0 wrote it one level up, where load after an unzip never found it).
saveToFile(String filePath) → Future<void>
Writes a .comics file (data.json + the working folder's layers/ and sounds/).
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

load() → Future<Comics>
Loads data.json from the working folder (a new 1080×2160 comics when there is none).
loadFromFile(String filePath) → Future<Comics>
Opens a .comics file (validated by the contract reader) into the working folder.