postAjax function

Future<List<int>?> postAjax(
  1. Uri url, {
  2. List<int>? data,
  3. String? body,
  4. Map<String, String>? headers,
  5. bool? onResponse(
    1. HttpClientResponse response
    )?,
})

Sends an Ajax request to the given url using the POST method.

Implementation

Future<List<int>?> postAjax(Uri url, {
    List<int>? data, String? body, Map<String, String>? headers,
    bool? onResponse(HttpClientResponse response)?})
=> ajax(url, method: "POST", data: data, body: body,
    headers: headers, onResponse: onResponse);