removeCookie method
Removes a cookie by setting its value to an empty string and expiration to a past date.
key
- The name of the cookie to be removed.
Implementation
void removeCookie(String key) {
addCookie(key, '', duration: Duration(days: -1, seconds: -1));
cookies.removeWhere((element) => element.name == key);
}