post static method

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

Sends an HTTP POST request.

Implementation

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