post method

Future<Response> post(
  1. dynamic data
)

Implementation

Future<http.Response> post( dynamic data) async {
  http.Response response = await http.post(Uri.parse(url), body: data, headers: headers);
  updateCookie(response);
 // return json.decode(response.body);
  return response;
}