post method

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

POST url 请求地址 headers 请求头 body 请求体

Implementation

Future<Response> post(
  String url, {
  Map<String, String>? headers,
  Object? body,
}) {
  return _request(
    method: 'post',
    url: url,
    headers: headers,
    body: body,
  );
}