deleteImage method
Delete an image
Implementation
Future deleteImage(dynamic item, {required ApiRequest apiRequest}) async {
FormData formData = FormData();
if (apiRequest.postData != null) {
formData.fields.add(MapEntry("data", apiRequest.postData));
}
/// setup the API for the request
_setupApiFromRequest(apiRequest);
return await network(
request: (api) => api.request("/", data: formData),
);
}