checkTileCached method

bool checkTileCached({
  1. required Coords<num> coords,
  2. required TileLayerOptions options,
  3. String? customURL,
})

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

Implementation

bool checkTileCached({
  required Coords<num> coords,
  required TileLayerOptions options,
  String? customURL,
}) =>
    (storeDirectory.access.tiles >>>
            filesystemSanitiseValidate(
              inputString: customURL ?? getTileUrl(coords, options),
              throwIfInvalid: false,
            ))
        .existsSync();