getWarmAsset method

T? getWarmAsset(
  1. AssetProvider assetProvider
)

Get an asset from the cache.

Implementation

T? getWarmAsset(AssetProvider assetProvider) {
  T? asset = _assets[assetProvider];
  return (asset?.isAvailable ?? false) ? asset : null;
}