onResponse method

  1. @override
Future onResponse (
  1. Response response

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.


Future onResponse(Response response) async {
  logPrint('*** Response ***');