TileLayer constructor
TileLayer({
- int? id,
- required String name,
- String? class_,
- int x = 0,
- int y = 0,
- double offsetX = 0,
- double offsetY = 0,
- double parallaxX = 1,
- double parallaxY = 1,
- int? startX,
- int? startY,
- String? tintColorHex,
- Color? tintColor,
- double opacity = 1,
- bool visible = true,
- CustomProperties properties = CustomProperties.empty,
- required int width,
- required int height,
- Compression? compression,
- FileEncoding encoding = FileEncoding.csv,
- List<
Chunk> ? chunks, - List<
int> ? data,
Implementation
TileLayer({
super.id,
required super.name,
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,
required this.width,
required this.height,
this.compression,
this.encoding = FileEncoding.csv,
this.chunks,
this.data,
}) : tileData = maybeGenerate(data, width, height),
super(
type: LayerType.tileLayer,
);