redactForSharing function
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);