checkTileCachedAsync method Null safety

Future<bool> checkTileCachedAsync(
  1. {required Coords<num> coords,
  2. required TileLayer options}
)

Check whether a specified tile is cached in the current store asynchronously

Implementation

Future<bool> checkTileCachedAsync({
  required Coords<num> coords,
  required TileLayer options,
}) async =>
    await _tiles.get(DatabaseTools.hash(getTileUrl(coords, options))) != null;