TiledMap constructor

TiledMap({
  1. TileMapType type = TileMapType.map,
  2. String version = '1.0',
  3. String? tiledVersion,
  4. required int width,
  5. required int height,
  6. bool infinite = false,
  7. required int tileWidth,
  8. required int tileHeight,
  9. List<Tileset> tilesets = const [],
  10. List<Layer> layers = const [],
  11. String? backgroundColorHex,
  12. Color? backgroundColor,
  13. int compressionLevel = -1,
  14. int? hexSideLength,
  15. int? nextLayerId,
  16. int? nextObjectId,
  17. MapOrientation? orientation,
  18. RenderOrder renderOrder = RenderOrder.rightDown,
  19. StaggerAxis? staggerAxis,
  20. StaggerIndex? staggerIndex,
  21. List<EditorSetting> editorSettings = const [],
  22. CustomProperties properties = CustomProperties.empty,
})

Implementation

TiledMap({
  this.type = TileMapType.map,
  this.version = '1.0',
  this.tiledVersion,
  required this.width,
  required this.height,
  this.infinite = false,
  required this.tileWidth,
  required this.tileHeight,
  this.tilesets = const [],
  this.layers = const [],
  this.backgroundColorHex,
  this.backgroundColor,
  this.compressionLevel = -1,
  this.hexSideLength,
  this.nextLayerId,
  this.nextObjectId,
  this.orientation,
  this.renderOrder = RenderOrder.rightDown,
  this.staggerAxis,
  this.staggerIndex,
  this.editorSettings = const [],
  this.properties = CustomProperties.empty,
});