destroy method

Future<Response> destroy({
  1. required String url,
  2. Map<String, String>? headers,
})

Implementation

Future<http.Response> destroy ({ required String url, Map<String, String>? headers }) async {
  final response = await http.delete(Uri.parse("$baseUrl$url"), headers: _getHeaders(headers));
  return responseWrapper(response);
}