checkTileCached method

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

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

Implementation

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