delete function
Implementation
Future<http.Response> delete(String endpoint, String accessToken) {
Uri url = Uri.parse("$apiUrl$endpoint");
Map<String, String> headers = {
'Content-Type': 'application/json',
'Authorization': "Bearer $accessToken",
};
return http.delete(url, headers: headers);
}