post method

Future<String> post(
  1. String url, {
  2. Map<String, String>? headers,
})

Returns the body of the given url after a POST request. This process is async, thus the body is returned as a future String instance.

Implementation

Future<String> post(String url, {Map<String, String>? headers}) async =>
    postBody(Uri.parse(url), headers: headers);