tryAssetPathSync method

String tryAssetPathSync(
  1. String staticPath
)

Returns the cache-busted path for staticPath if previously computed by assetPath, tryAssetPath, or indexAssets.

Returns staticPath unchanged if not in the cache.

Implementation

String tryAssetPathSync(final String staticPath) {
  return _cache[staticPath] ?? staticPath;
}