TileLayer constructor

TileLayer({
  1. required String name,
  2. required int width,
  3. required int height,
  4. int? id,
  5. String? class_,
  6. int x = 0,
  7. int y = 0,
  8. double offsetX = 0,
  9. double offsetY = 0,
  10. double parallaxX = 1,
  11. double parallaxY = 1,
  12. int? startX,
  13. int? startY,
  14. String? tintColorHex,
  15. Color? tintColor,
  16. double opacity = 1,
  17. bool visible = true,
  18. CustomProperties properties = CustomProperties.empty,
  19. Compression? compression,
  20. FileEncoding encoding = FileEncoding.csv,
  21. List<Chunk>? chunks,
  22. List<int>? data,
})

Implementation

TileLayer({
  required super.name,
  required this.width,
  required this.height,
  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.compression,
  this.encoding = FileEncoding.csv,
  this.chunks,
  this.data,
})  : tileData = maybeGenerate(data, width, height),
      super(
        type: LayerType.tileLayer,
      );