delete method
Implementation
Future<Response> delete(
String path, {
dynamic data,
Map<String, dynamic>? headers,
}) async {
try {
final response = await _dio.delete(
path,
data: data,
options: Options(headers: headers),
);
return response;
} on DioException catch (e, stackTrace) {
throw _handleDioError(e, stackTrace.toString());
} catch (e, stackTrace) {
throw Failure.general(description: e.toString(), stackTrace: stackTrace.toString());
}
}