onHttpResponse method

void onHttpResponse(
  1. Response response, {
  2. dynamic body,
  3. Duration? callDuration,
})

Handle both request and response from http package

Implementation

void onHttpResponse(
  http.Response response, {
  dynamic body,
  Duration? callDuration,
}) {
  _httpAdapter.onResponse(
    response,
    body: body,
    callDuration: callDuration,
  );
}