addTiles method

BoardTilesSpawned addTiles(
  1. int x,
  2. int y,
  3. List<BoardTile> tiles
)

Implementation

BoardTilesSpawned addTiles(int x, int y, List<BoardTile> tiles) =>
    copyWith(tiles: {
      ...this.tiles,
      VectorDefinition(x, y): [
        ...?this.tiles[VectorDefinition(x, y)],
        ...tiles
      ]
    });