TileLayerComponent constructor

TileLayerComponent({
  1. required int id,
  2. required List<Tile> tiles,
  3. Vector2? position,
  4. bool visible = true,
  5. String? name,
  6. String? layerClass,
  7. double opacity = 1,
  8. Map<String, dynamic>? properties,
  9. int? priority,
})

Implementation

TileLayerComponent({
  required this.id,
  required List<Tile> tiles,
  super.position,
  bool visible = true,
  this.name,
  this.layerClass,
  double opacity = 1,
  this.properties,
  super.priority,
})  : _tiles = tiles,
      _isVisible = visible {
  this.opacity = opacity;
  _updateSizeAndPosition();
}