TiledObject constructor

TiledObject({
  1. required int id,
  2. String name = '',
  3. String type = '',
  4. int? gid,
  5. double x = 0,
  6. double y = 0,
  7. double width = 0,
  8. double height = 0,
  9. double rotation = 0,
  10. bool ellipse = false,
  11. bool point = false,
  12. bool rectangle = false,
  13. Template? template,
  14. Text? text,
  15. bool visible = true,
  16. List<Point> polygon = const [],
  17. List<Point> polyline = const [],
  18. 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,
});