@@ -51,16 +51,20 @@ class GraphQLClient implements GraphQLDataProxy {
51
51
late final QueryManager queryManager;
52
52
53
53
/// Create a copy of the client with the provided information.
54
- GraphQLClient copyWith (
55
- {Link ? link,
56
- GraphQLCache ? cache,
57
- DefaultPolicies ? defaultPolicies,
58
- bool ? alwaysRebroadcast}) {
54
+ GraphQLClient copyWith ({
55
+ Link ? link,
56
+ GraphQLCache ? cache,
57
+ DefaultPolicies ? defaultPolicies,
58
+ bool ? alwaysRebroadcast,
59
+ Duration ? queryRequestTimeout,
60
+ }) {
59
61
return GraphQLClient (
60
- link: link ?? this .link,
61
- cache: cache ?? this .cache,
62
- defaultPolicies: defaultPolicies ?? this .defaultPolicies,
63
- alwaysRebroadcast: alwaysRebroadcast ?? queryManager.alwaysRebroadcast);
62
+ link: link ?? this .link,
63
+ cache: cache ?? this .cache,
64
+ defaultPolicies: defaultPolicies ?? this .defaultPolicies,
65
+ alwaysRebroadcast: alwaysRebroadcast ?? queryManager.alwaysRebroadcast,
66
+ queryRequestTimeout: queryRequestTimeout ?? queryManager.requestTimeout,
67
+ );
64
68
}
65
69
66
70
/// This registers a query in the [QueryManager] and returns an [ObservableQuery]
0 commit comments