isFormData method

bool isFormData(
  1. Map<String, String>? headers
)

Implementation

bool isFormData(Map<String, String>? headers) {
  if ([headers!["Content-Type"], headers["content-type"]]
      .contains("multipart/form-data")) return true;
  return false;
}