put static method

Future<Map<String, dynamic>> put({
  1. required String url,
  2. Map<String, String> headers = const {"Content-type" : 'application/json'},
  3. bool testMode = false,
  4. required Map<String, dynamic> body,
  5. int urlIndex = 0,
})

Sends an HTTP PUT request.

Implementation

static Future<Map<String, dynamic>> put(
    {required String url,
    Map<String, String> headers = const {"Content-type": 'application/json'},
    bool testMode = false,
    required Map<String, dynamic> body,
    int urlIndex = 0}) async {
  return await ApiST.instance.request(
      type: TYPE.PUT,
      baseUrl: url,
      rawHeaders: headers,
      testMode: testMode,
      query: body,
      urlIndex: urlIndex);
}