delete method
Performs a DELETE request to the specified path on this service's base URL.
path: The API endpoint path (will be joined with baseUrl)data: Optional body data to sendheaders: Optional map of additional headers- Returns: A Future containing the
Response
Implementation
@protected
Future<Response<dynamic>> delete(
String path, {
Object? data,
Map<String, dynamic>? headers,
}) async {
return await BaseApi.delete(
joinUrl(_baseUrl, path),
data: data,
headers: headers,
);
}