post method

Future<Response> post(
  1. String path,
  2. String body, {
  3. Map<String, String>? customHeaders,
})

Implementation

Future<Response> post(String path, String body,
    {Map<String, String>? customHeaders}) async {
  return _config.client.post(
    Uri.parse('$baseUrl$path'),
    headers: headers(customHeaders),
    body: body,
  );
}