delete method
Implementation
Future<dynamic> delete(String path, {Map<String, dynamic>? data}) async {
try {
final body = UFUtils.applyEncryption
? EncryptionUtil.secKeyEncryptWithBodyAppKey(data ?? {})
: jsonEncode(data);
final response = await _dio.delete(UFUtils.baseUrl + path, data: body);
return response.data;
} catch (e) {
rethrow;
}
}