delete<T> method
Perform a DELETE request
Implementation
Future<T> delete<T>(
String path, {
dynamic data,
Map<String, dynamic>? queryParameters,
Options? options,
}) async {
try {
final response = await _dio.delete<T>(
path,
data: data,
queryParameters: queryParameters,
options: options,
);
return response.data!;
} on DioException catch (e) {
if (e.error is ProdobitException) {
throw e.error! as ProdobitException;
}
rethrow;
}
}