post method

Future<HttpResponseData> post(
  1. dynamic api, {
  2. dynamic params,
  3. bool withLoadingHint = true,
  4. bool withErrorHint = true,
  5. String? contentType,
})

POST请求

Implementation

Future<HttpResponseData> post(api,
    {params,
    bool withLoadingHint = true,
    bool withErrorHint = true,
    String? contentType}) async {
  return await _request(
      api: api,
      method: 'post',
      params: params,
      withLoadingHint: withLoadingHint,
      withErrorHint: withErrorHint,
      contentType: contentType);
}