clearTileCache method

Future<void> clearTileCache(
  1. TileOverlayId tileOverlayId,
  2. {required int mapId}
)

Clears the tile cache so that all tiles will be requested again from the TileProvider.

The current tiles from this tile overlay will also be cleared from the map after calling this method. The Google Maps SDK maintains a small in-memory cache of tiles. If you want to cache tiles for longer, you should implement an on-disk cache.

Implementation

Future<void> clearTileCache(
  TileOverlayId tileOverlayId, {
  required int mapId,
}) {
  throw UnimplementedError('clearTileCache() has not been implemented.');
}