delete method

Future<Response> delete(
  1. String url, {
  2. Map<String, String>? headers,
  3. Client? httpClient,
})

Performs a DELETE request to the specified url, adding the authorization token.

If no token already exists, or if it is expired, a new one is requested.

Implementation

Future<http.Response> delete(String url,
    {Map<String, String>? headers, http.Client? httpClient}) async {
  return _request('DELETE', url, headers: headers, httpClient: httpClient);
}