StreamResource<K, V> constructor
StreamResource<K, V> (
- Future<
V> _fetch(- K key,
- ResourceFetchArguments? arguments
- K _resourceKey,
- CacheDurationResolver<
K, V> _cacheDurationResolver, - CacheStorage<
K, V> _storage,
Creates an instance. Usually you don't need to create directly. It is used inside the repositories.
Implementation
StreamResource(
this._fetch,
this._resourceKey,
this._cacheDurationResolver,
this._storage,
);