Flutter http headers
问题 The post request throwing error while setting the header map. Here is my code Future<GenericResponse> makePostCall( GenericRequest genericRequest) {String URL = "$BASE_URL/api/"; Map data = { "name": "name", "email": "email", "mobile": "mobile", "transportationRequired": false, "userId": 5, }; Map userHeader = {"Content-type": "application/json", "Accept": "application/json"}; return _netUtil.post(URL, body: data, headers:userHeader).then((dynamic res) { print(res); if (res["code"] != 200)