onResponse method

void onResponse(
  1. Response response, {
  2. dynamic body,
})

Handles http response. It creates both request and response from http call

Implementation

void onResponse(http.Response response, {dynamic body}) =>
    _onResponse(response, body: body);