TiledObject constructor
TiledObject({
- required int id,
- String name = '',
- String type = '',
- int? gid,
- double x = 0,
- double y = 0,
- double width = 0,
- double height = 0,
- double rotation = 0,
- bool ellipse = false,
- bool point = false,
- bool rectangle = false,
- Template? template,
- Text? text,
- bool visible = true,
- List<
Point> polygon = const [], - List<
Point> polyline = const [], - CustomProperties properties = CustomProperties.empty,
Implementation
TiledObject({
required this.id,
this.name = '',
this.type = '',
this.gid,
this.x = 0,
this.y = 0,
this.width = 0,
this.height = 0,
this.rotation = 0,
this.ellipse = false,
this.point = false,
this.rectangle = false,
this.template,
this.text,
this.visible = true,
this.polygon = const [],
this.polyline = const [],
this.properties = CustomProperties.empty,
});