Layer constructor

Layer({
  1. int? id,
  2. required String name,
  3. required LayerType type,
  4. String? class_,
  5. int x = 0,
  6. int y = 0,
  7. double offsetX = 0,
  8. double offsetY = 0,
  9. double parallaxX = 1,
  10. double parallaxY = 1,
  11. int? startX,
  12. int? startY,
  13. String? tintColorHex,
  14. Color? tintColor,
  15. double opacity = 1,
  16. bool visible = true,
  17. 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,
});