Boa noite ! Estou com esse erro fazem duas semanas , apresenta esse erro somente no console.
import 'package:http/http.dart';
import 'package:http_interceptor/http_interceptor.dart';
class LoggingInterceptor implements InterceptorContract {
@override
Future<RequestData> interceptRequest({RequestData data}) async {
print('Resquest');
print(' url: ${data.url}');
print(' headers: ${data.headers}');
print(' body: ${data.body}');
return data;
}
@override
Future<ResponseData> interceptResponse({ResponseData data}) async {
print('Response');
print('status code: ${data.statusCode}');
print('headers: ${data.headers}');
print('body: ${data.body}');
return data;
}
}
void findAll() async {
final Client client =
HttpClientWithInterceptor.build(interceptors: [LoggingInterceptor()]);
final Response response =
await client.get(Uri.https('192.168.0.166:8080', 'transactions'));
print(response.body);
}