GraphQLClient constructor
GraphQLClient({
- required Link link,
- required GraphQLCache cache,
- DefaultPolicies? defaultPolicies,
- bool alwaysRebroadcast = false,
- DeepEqualsFn? deepEquals,
- bool deduplicatePollers = false,
- Duration queryRequestTimeout = const Duration(seconds: 5),
Constructs a GraphQLClient given a Link and a Cache
.
Implementation
GraphQLClient({
required this.link,
required this.cache,
DefaultPolicies? defaultPolicies,
bool alwaysRebroadcast = false,
DeepEqualsFn? deepEquals,
bool deduplicatePollers = false,
Duration queryRequestTimeout = const Duration(seconds: 5),
}) : defaultPolicies = defaultPolicies ?? DefaultPolicies(),
queryManager = QueryManager(
link: link,
cache: cache,
alwaysRebroadcast: alwaysRebroadcast,
deepEquals: deepEquals,
deduplicatePollers: deduplicatePollers,
requestTimeout: queryRequestTimeout,
);