redactUrl method
Redacts query parameter values and userInfo credentials in a URL.
Returns the original URL string if redaction is disabled or
the URL has nothing to redact. Delegates to RedactionService.redactUrl.
Implementation
String redactUrl(String url, {required bool useRedaction}) {
if (!useRedaction) return url;
return redactor.redactUrl(url);
}