delete method

  1. @override
Future<Response> delete(
  1. Uri url, {
  2. Map<String, String>? headers,
  3. Object? body,
  4. Encoding? encoding,
})

Sends an HTTP DELETE request with the given headers to the given URL.

For more fine-grained control over the request, use send instead.

Implementation

@override
Future<Response> delete(
  final Uri url, {
  final Map<String, String>? headers,
  final body,
  final Encoding? encoding,
}) async {
  return _checkResponse(
    await super.delete(
      Uri.parse('$_baseUrl$url'),
      headers: headers,
    ),
  );
}