contentTypeWithRequestBody method Null safety

String? contentTypeWithRequestBody(
  1. String method
)

Implementation

String? contentTypeWithRequestBody(String method) {
  if (setRequestContentTypeWhenNoPayload) {
    return contentType;
  } else {
    return _allowPayloadMethods.contains(method) ? contentType : null;
  }
}