DartpolloCachedClient.fromLink constructor

DartpolloCachedClient.fromLink(
  1. Link _link, {
  2. required CacheLink cacheLink,
  3. HttpLink? httpLink,
})

Creates a cached client from a custom Link.

This constructor is useful when you need full control over the link chain. You must provide the cacheLink separately for cache management methods to work.

Implementation

DartpolloCachedClient.fromLink(
  this._link, {
  required CacheLink cacheLink,
  HttpLink? httpLink,
}) : _cacheLink = cacheLink,
     _httpLink = httpLink;