redactUrlAndPath method

({String path, String url}) redactUrlAndPath(
  1. Uri uri, {
  2. required bool useRedaction,
})
inherited

Redacts both URL and path from a Uri in one call.

Returns a record with url (full URI string) and path (URI path only), both redacted if useRedaction is true.

Implementation

({String url, String path}) redactUrlAndPath(
  Uri uri, {
  required bool useRedaction,
}) =>
    (
      url: redactUrl(uri.toString(), useRedaction: useRedaction),
      path: redactUrl(uri.path, useRedaction: useRedaction),
    );