logResponse function

void logResponse(
  1. dynamic response
)

Implementation

void logResponse(response) => kDebugMode
    ? Logger().d([
        response.request.toString(),
        response.request.url.path,
        "REQUEST:",
        response.request.headers,
        json.decode(response.request.body),
        "RESPONSE:",
        response.statusCode,
        json.decode(response.body)
      ])
    : null;