showLog static method
void
showLog(})
Implementation
static void showLog(data,
{bool? showLog,
bool enableJsonEncode = true,
bool showPrint = false,
required String logName}) {
try {
if (HttpCalls.showAPILogs ?? showLog ?? kDebugMode) {
showPrint
? debugPrint(data)
: log(enableJsonEncode ? jsonEncode(data) : data,
time: DateTime.timestamp(), name: 'HttpCalls=> $logName');
}
} catch (e) {
log('getting exception showing log', time: DateTime.timestamp());
}
}