Layer constructor
Layer({
- int? id,
- required String name,
- required LayerType type,
- String? class_,
- int x = 0,
- int y = 0,
- double offsetX = 0,
- double offsetY = 0,
- double parallaxX = 1,
- double parallaxY = 1,
- int? startX,
- int? startY,
- String? tintColorHex,
- Color? tintColor,
- double opacity = 1,
- bool visible = true,
- CustomProperties properties = CustomProperties.empty,
Implementation
Layer({
this.id,
required this.name,
required this.type,
this.class_,
this.x = 0,
this.y = 0,
this.offsetX = 0,
this.offsetY = 0,
this.parallaxX = 1,
this.parallaxY = 1,
this.startX,
this.startY,
this.tintColorHex,
this.tintColor,
this.opacity = 1,
this.visible = true,
this.properties = CustomProperties.empty,
});