delete method
Implementation
Future<Response<dynamic>> delete(
String path, {
Map<String, dynamic>? data,
APIType apiType = APIType.public,
TokenType tokenType = TokenType.bearer,
Map<String, dynamic>? headers,
Map<String, dynamic>? query,
}) async {
_setDioInterceptorList();
final standardHeaders = await _getOptions(apiType, tokenType);
if (headers != null) {
standardHeaders.headers?.addAll(headers);
}
return _dio
.delete(
path,
data: data,
queryParameters: query,
options: standardHeaders,
)
.then((value) => value)
.catchError(_handleException);
}