DartpolloCachedClient.fromLink constructor
DartpolloCachedClient.fromLink(
- Link _link, {
- required CacheLink cacheLink,
- 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;