onResponse method
Called when the response is about to be resolved.
Implementation
@override
void onResponse(Response<dynamic> response, ResponseInterceptorHandler hdl) {
if (!enabled) return hdl.next(response);
final js = genByJson(response.data);
logPrint([
"RSP ${response.requestOptions.uri.path} <<<<<<<<<<<<<",
if (responseHeader) "${response.headers}",
js,
if (rspExtra != null) "ERR-EXT ${rspExtra?.call(response)}",
].join('\n'));
return hdl.next(response);
}