onResponse method
Handles HTTP responses before they are processed.
Logs response details including status code and formatted response data.
Implementation
@override
void onResponse(Response response, ResponseInterceptorHandler handler) {
logDebug(
'onResponse: StatusCode: ${response.statusCode}, Data: ${_prettyJsonEncode(response.data)}',
level: LogLevel.debug); // Log formatted response data
logDebug(_lineChar);
logDebug('\n');
return super.onResponse(response, handler);
}