delete method

Future<Response?> delete(
  1. String endpoint, {
  2. Object? body,
  3. Map<String, String>? extraHeaders,
})

Sends a DELETE request to endpoint.

body is automatically JSON-encoded if it's a Map or List. Pass a String to send raw.

Implementation

Future<http.Response?> delete(
  String endpoint, {
  Object? body,
  Map<String, String>? extraHeaders,
}) =>
    _sendWithBody(
        client.delete, _buildUri(endpoint), _encodeBody(body), extraHeaders);