ImageLayer constructor
ImageLayer({
- int? id,
- required String name,
- 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,
- required TiledImage image,
- required bool repeatX,
- required bool repeatY,
- String? transparentColorHex,
- Color? transparentColor,
Implementation
ImageLayer({
super.id,
required super.name,
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,
required this.image,
required this.repeatX,
required this.repeatY,
this.transparentColorHex,
this.transparentColor,
}) : super(
type: LayerType.imageLayer,
);