safeDebugLog function
Logs a message to the console if the debug mode is enabled.
The e parameter is the object to log.
The stackTrace parameter is the stack trace to log.
Implementation
void safeDebugLog(Object? e, {StackTrace? stackTrace}) {
if (kDebugMode) {
log(e.toString(), stackTrace: stackTrace, name: 'SafeDebugLog');
}
}