delete static method
Sends an HTTP DELETE request.
Implementation
static Future<Map<String, dynamic>> delete(
{required String method,
bool isAuth = false,
bool testMode = false,
Map<String, dynamic>? query,
int urlIndex = 0}) async {
String error = _checkBeforeRequest(isAuth, urlIndex);
if (error.isNotEmpty) {
throw APIException(-1, body: error);
}
return await ApiST.instance
.request(type: TYPE.DEL, method: method, isAuth: isAuth, testMode: testMode, query: query, urlIndex: urlIndex);
}