ImageLayer constructor

ImageLayer({
  1. required String name,
  2. required TiledImage image,
  3. required bool repeatX,
  4. required bool repeatY,
  5. int? id,
  6. String? class_,
  7. int x = 0,
  8. int y = 0,
  9. double offsetX = 0,
  10. double offsetY = 0,
  11. double parallaxX = 1,
  12. double parallaxY = 1,
  13. int? startX,
  14. int? startY,
  15. String? tintColorHex,
  16. Color? tintColor,
  17. double opacity = 1,
  18. bool visible = true,
  19. CustomProperties properties = CustomProperties.empty,
  20. String? transparentColorHex,
  21. Color? transparentColor,
})

Implementation

ImageLayer({
  required super.name,
  required this.image,
  required this.repeatX,
  required this.repeatY,
  super.id,
  super.class_,
  super.x,
  super.y,
  super.offsetX,
  super.offsetY,
  super.parallaxX,
  super.parallaxY,
  super.startX,
  super.startY,
  super.tintColorHex,
  super.tintColor,
  super.opacity,
  super.visible,
  super.properties,
  this.transparentColorHex,
  this.transparentColor,
}) : super(
        type: LayerType.imageLayer,
      );