redact static method
Returns a copy of data with secret values masked. JSON strings stay
strings, FormData becomes a map. Never throws.
Implementation
static Object? redact(Object? data, {int depth = 0}) {
try {
return _redact(data, depth);
} catch (_) {
return mask;
}
}