post method

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

Implementation

Future<http.Response> post({required url, Map<String, Object?>? body}) async {
  return await http.post(
    url,
    body: body,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'User-Agent': constants.platform,
    },
  );
}