updateHeaderIfAbsent function

bool updateHeaderIfAbsent(
  1. Map<String, String> requestHeaders,
  2. MapEntry<String, String> header
)

Implementation

bool updateHeaderIfAbsent(
  Map<String, String> requestHeaders,
  MapEntry<String, String> header,
) {
  return !requestHeaders.containsKey(header.key);
}