headers static method
Masks headers. Values may be strings or lists.
Implementation
static Map<String, String> headers(Map<String, String> headers) => {
for (final entry in headers.entries)
entry.key: isSensitive(entry.key) ? mask : entry.value,
};