File tree Expand file tree Collapse file tree 4 files changed +0
-44
lines changed Expand file tree Collapse file tree 4 files changed +0
-44
lines changed Original file line number Diff line number Diff line change @@ -165,9 +165,4 @@ abstract class BaseRequest {
165
165
166
166
@override
167
167
String toString () => '$method $url ' ;
168
-
169
- /// [cache] property for caching the network request.
170
- ///
171
- /// Defaults to `default` .
172
- String ? get cache => HttpCacheOptions .defaultType;
173
168
}
Original file line number Diff line number Diff line change @@ -159,17 +159,4 @@ class MultipartRequest extends BaseRequest {
159
159
growable: false );
160
160
return '$prefix ${String .fromCharCodes (list )}' ;
161
161
}
162
-
163
- @override
164
- String ? get cache {
165
- if (_cache != null ) {
166
- return _cache;
167
- }
168
- return super .cache;
169
- }
170
-
171
- String ? _cache;
172
- set cache (String ? cacheType) {
173
- _cache = cacheType! ;
174
- }
175
162
}
Original file line number Diff line number Diff line change @@ -181,17 +181,4 @@ class Request extends BaseRequest {
181
181
if (! finalized) return ;
182
182
throw StateError ("Can't modify a finalized Request." );
183
183
}
184
-
185
- @override
186
- String ? get cache {
187
- if (_cache != null ) {
188
- return _cache;
189
- }
190
- return super .cache;
191
- }
192
-
193
- String ? _cache;
194
- set cache (String ? cacheType) {
195
- _cache = cacheType! ;
196
- }
197
184
}
Original file line number Diff line number Diff line change @@ -52,17 +52,4 @@ class StreamedRequest extends BaseRequest {
52
52
super .finalize ();
53
53
return ByteStream (_controller.stream);
54
54
}
55
-
56
- @override
57
- String ? get cache {
58
- if (_cache != null ) {
59
- return _cache;
60
- }
61
- return super .cache;
62
- }
63
-
64
- String ? _cache;
65
- set cache (String ? cacheType) {
66
- _cache = cacheType! ;
67
- }
68
55
}
You can’t perform that action at this time.
0 commit comments