delete<T> method
Sends an HTTP DELETE request to path with optional body and decodes the JSON response as T.
Throws an http.ClientException on non-2xx responses.
await client.delete('/tasks/123');
Implementation
Future<T> delete<T>(
String path, {
dynamic body,
Map<String, String>? headers,
Map<String, dynamic>? queryParameters,
}) async {
final res = await _send('DELETE', path,
body: body, headers: headers, queryParameters: queryParameters);
return res as T;
}