ObjectGroup constructor

ObjectGroup({
  1. int? id,
  2. required String name,
  3. String? class_,
  4. int x = 0,
  5. int y = 0,
  6. double offsetX = 0,
  7. double offsetY = 0,
  8. double parallaxX = 1,
  9. double parallaxY = 1,
  10. int? startX,
  11. int? startY,
  12. String? tintColorHex,
  13. Color? tintColor,
  14. double opacity = 1,
  15. bool visible = true,
  16. CustomProperties properties = CustomProperties.empty,
  17. DrawOrder drawOrder = DrawOrder.topDown,
  18. required List<TiledObject> objects,
  19. String colorHex = defaultColorHex,
  20. Color color = defaultColor,
})

Implementation

ObjectGroup({
  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,
  this.drawOrder = DrawOrder.topDown,
  required this.objects,
  this.colorHex = defaultColorHex,
  this.color = defaultColor,
}) : super(
        type: LayerType.objectGroup,
      );