delete static method

Future<Map<String, dynamic>> delete({
  1. required String method,
  2. bool isAuth = false,
  3. bool testMode = false,
  4. Map<String, dynamic>? query,
  5. int urlIndex = 0,
})

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);
}