Tile constructor

Tile({
  1. required int localId,
  2. String? type,
  3. double probability = 0,
  4. List<int?> terrain = const [],
  5. TiledImage? image,
  6. Rect? imageRect,
  7. Layer? objectGroup,
  8. List<Frame> animation = const [],
  9. CustomProperties properties = CustomProperties.empty,
})

Implementation

Tile({
  required this.localId,
  this.type,
  this.probability = 0,
  this.terrain = const [],
  this.image,
  this.imageRect,
  this.objectGroup,
  this.animation = const [],
  this.properties = CustomProperties.empty,
});