I am trying to delete multiple users from server by sending list of user ids but in http delete method doesn't allowed that.so if i want to delete users with ids 1 ,2 and 3 how can i do that in flutter. here is the code:
Map<String, String> requestHeaders = {
'Content-Type': 'application/x-www-form-urlencoded',
'Accept': 'application/json',
'Authorization': 'Bearer $token'
}; //bearer is important
final ids=[];
ids.add(1);
ids.add(1);
var response = await delete(
Constants.BasicURL + Constants.Users+ids ,
headers: requestHeaders,
);