redactForSharing function

String redactForSharing(
  1. String input, {
  2. Iterable<String> appNames = const [],
  3. Iterable<String> deviceNames = const [],
  4. Iterable<String> hosts = const [],
})

redactPath, redactSecrets and the given app, device and host names together, for anything posted publicly; reports build one IdentityRedactor and reuse it.

Implementation

String redactForSharing(
  String input, {
  Iterable<String> appNames = const [],
  Iterable<String> deviceNames = const [],
  Iterable<String> hosts = const [],
}) =>
    IdentityRedactor(appNames: appNames, deviceNames: deviceNames, hosts: hosts).forSharing(input);