delete method
Performs a DELETE request with a new Client instance and closes it after it has been used.
Implementation
Future<Response> delete(
url, {
Map<String, String>? headers,
Map<String, dynamic>? params,
Object? body,
Encoding? encoding,
}) async {
return _withClient((client) => client.delete(
url,
headers: headers,
params: params,
body: body,
encoding: encoding,
));
}