PosterModel class
Represents the entire poster, containing layers and background settings.
Constructors
-
PosterModel({String? id, List<
LayerModel> ? layers, Color backgroundColor = Colors.white, String? backgroundImage, Size size = const Size(1080, 1920)}) -
PosterModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- backgroundColor ↔ Color
-
Background color of the poster.
getter/setter pair
- backgroundImage ↔ String?
-
Optional background image path.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
Unique identifier for the poster.
getter/setter pair
-
layers
↔ List<
LayerModel> -
List of layers in the poster.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ Size
-
Size of the poster.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited