printingResponse method
void
printingResponse(
- Response response, {
- dynamic params,
Implementation
void printingResponse(Response response, {dynamic params}) {
log("\n--------------------------------------------------------------------------------------------------------------------------------------------"
"\n\tMethod: ${response.requestOptions.method}"
"\n\tPath: ${response.realUri}"
"\n\tStatusCode: ${response.statusCode}"
"\n\tHeader: ${jsonEncode(response.requestOptions.headers)}"
"${params != null ? "\n\tRequest body: ${jsonEncode(params)}" : ""}"
"\n\tResponse body: ${response.data}"
"\n"
"\n--------------------------------------------------------------------------------------------------------------------------------------------");
}