onResponse method
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
Future onResponse(Response response) async => response;