ObjectGroup constructor

ObjectGroup({
  1. required String name,
  2. required List<TiledObject> objects,
  3. int? id,
  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,
  18. DrawOrder drawOrder = DrawOrder.topDown,
  19. String colorHex = defaultColorHex,
  20. Color color = defaultColor,
})

Implementation

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