My Flutter http.post request is sending an empty body to my Node.js server. Here is my front-end code:
var response = await http.post(Uri.parse('$host/api/new'),
body: {
'id': '$id',
'token': token
});
The post is reaching my node.js server, but the body is an empty object. What am I doing wrong?