clearTileCache method Null safety

Future<void> clearTileCache(
  1. TileOverlayId tileOverlayId
)

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 API 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) async {
  assert(tileOverlayId != null);
  return GoogleMapsFlutterPlatform.instance
      .clearTileCache(tileOverlayId, mapId: mapId);
}