logRequest function
Implementation
void logRequest(
String? appName, String className, String type, String uri, String body) {
String requestString = ' \n';
final String name = appName != null ? '$appName ' : '';
requestString += '----\n${name}API Request ($className : $type) :';
requestString += '\nUri: $uri';
requestString += '\nBody: $body';
requestString += '\n----\n';
print(requestString);
}