load method

Future<T> load(
  1. String key
)

Load an asset from the cache or load it from the asset bundle and cache it

Implementation

Future<T> load(String key) => _cache.putIfAbsent(key, () => loadAsset(key));