addCookie static method
Add a cookie with its name
and value
to the hostname
associated
CookieJar.
Implementation
static Future addCookie(String hostname, String name, String value) async {
var cookieJar = await getStoredCookies(hostname);
cookieJar[name] = Cookie(name, value);
await setStoredCookies(hostname, cookieJar);
}