patch static method

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

Sends an HTTP PATCH request.

Implementation

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