void logError(String code, String? message) { if (message != null) { print('Error: $code\nError Message: $message'); } else { print('Error: $code'); } }