delete method
Makes a DELETE request to the specified endpoint
Implementation
Future<Map<String, dynamic>> delete(
String endpoint, {
Map<String, String>? headers,
}) async {
final uri = _buildUri(endpoint);
final request = http.Request('DELETE', uri);
if (headers != null) {
request.headers.addAll(headers);
}
return _executeRequest(request);
}