Fixing patch for coming breaking change in HttpClientRequest (#61138)
* Fixing patch for coming breaking change in HttpClientRequest * Add noSuchMethod() and comment out abort() * Add ignore: override_on_non_overriding_member
This commit is contained in:
parent
6e0bc30e84
commit
3631adc99a
@ -228,6 +228,11 @@ class _MockHttpRequest extends HttpClientRequest {
|
||||
return Future<HttpClientResponse>.value(_MockHttpResponse());
|
||||
}
|
||||
|
||||
// TODO(zichangguo): remove the ignore after the change in dart:io lands.
|
||||
@override
|
||||
// ignore: override_on_non_overriding_member
|
||||
void abort([Object exception, StackTrace stackTrace]) {}
|
||||
|
||||
@override
|
||||
HttpConnectionInfo get connectionInfo => null;
|
||||
|
||||
|
@ -377,6 +377,11 @@ class FakeHttpClientRequest implements HttpClientRequest {
|
||||
|
||||
@override
|
||||
void writeln([Object obj = '']) {}
|
||||
|
||||
// TODO(zichangguo): remove the ignore after the change in dart:io lands.
|
||||
@override
|
||||
// ignore: override_on_non_overriding_member
|
||||
void abort([Object exception, StackTrace stackTrace]) {}
|
||||
}
|
||||
|
||||
class FakeHttpClientResponse implements HttpClientResponse {
|
||||
|
Loading…
x
Reference in New Issue
Block a user