delete static method
Implementation
static Future delete({
required String url,
required Map<String, dynamic> data,
required Map<String, String> headers,
}) async {
var url2 = Uri.parse(url);
http.Response response =
await http.delete(url2, headers: headers, body: jsonEncode(data));
String data2 = response.body;
var decodeData = jsonDecode(data2);
return {'status': response.statusCode, 'data': decodeData};
}