ObjectGroup constructor
ObjectGroup({
- required String name,
- required List<
TiledObject> objects, - int? id,
- 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,
- DrawOrder drawOrder = DrawOrder.topDown,
- String colorHex = defaultColorHex,
- 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,
);