updateTiles method
Implementation
void updateTiles(List<Tile> tiles) {
_tiles = tiles;
removeAll(children);
_quadTree?.clear();
_updateSizeAndPosition();
for (var tile in _tiles) {
_quadTree?.insert(
tile,
Point(tile.x, tile.y),
id: tile.id,
);
}
refresh();
}