fromHeadersMap static method Null safety

String? fromHeadersMap(
  1. Map<String, String> headers
)

Returns the BackendTracingID or null

Implementation

static String? fromHeadersMap(Map<String, String> headers) {
  var result;
  headers.forEach((key, value) {
    if (key.toLowerCase() == headerKey.toLowerCase()) {
      result = headerValueRegex.firstMatch(value)?.group(1);
    }
  });
  return result;
}