redactUrl method

String redactUrl(
  1. String url, {
  2. required bool useRedaction,
})
inherited

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);
}