post static method

Future<Response> post(
  1. Uri url, {
  2. Map<String, String>? headers,
  3. Object? body,
  4. Encoding? encoding,
})

Implementation

static Future<Response> post(Uri url,
    {Map<String, String>? headers, Object? body, Encoding? encoding}) async {
  var newHeader = _defaultHeaders(headers);
  return http.post(url, body: body, encoding: encoding, headers: newHeader);
}