StreamResource<K, V> constructor

StreamResource<K, V>(
  1. Future<V> _fetch(
    1. K key,
    2. ResourceFetchArguments? arguments
    )?,
  2. K _resourceKey,
  3. CacheDurationResolver<K, V> _cacheDurationResolver,
  4. 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,
);