Layer class

Модель слоя комикса

Annotations
  • @JsonSerializable.new()

Constructors

Layer({bool preview = false, List<Image>? images, List<Animation>? animations})
Layer.fromJson(Map<String, dynamic> json)
factory

Properties

animations ↔ List<Animation>
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
images ↔ List<Image>
getter/setter pair
preview ↔ bool
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete() → Future<void>
Удаление слоя
getImage(Cultures culture, {bool returnDefault = true}) → Image?
Получение изображения для определенного языка
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setImage(Cultures culture, String file, bool puzzle, bool popup) → Future<void>
Установка изображения для определенного языка
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

create(String file, double scroll, bool puzzle) → Future<Layer?>
Создание нового слоя