title: How do I make an http request using cookies on flutter?
body: <p>I'd like to make an http request to a remote server while properly handling cookies (eg. storing cookies sent by the server, and sending those cookies when I make subsequent requests). It'd be nice to preserve any and all cookies</p>
  
  <p>for http request I am using</p>
  
  <pre><code>static Future&lt;Map&gt; postData(Map data) async {
    http.Response res = await http.post(url, body: data); // post api call
    Map data = JSON.decode(res.body);
    return data;
  }
  </code></pre>