onResponse method
- @override
- Response response
override
The callback will be executed on success.
If you want to reject the request with a error message,
you can return a DioError object or return dio.reject
.
If you want to continue the request, return the Response object.
Implementation
@override
Future onResponse(Response response) async {
logPrint('*** Response ***');
_printResponse(response);
}