doPost function

dynamic doPost(
  1. String url,
  2. String body,
  3. dynamic f(
    1. Response response
    )
)

Implementation

doPost(String url, String body, f(http.Response response)) async {
  await myClient(url)
      .post(Uri.parse(url), headers: headers, body: body)
      .then((res) => dealResponse(response: res, f: f, url: url));
}