removeCookie method

void removeCookie(
  1. Cookie cookie
)

Changes the cookie's expiration date and adds it to the cookie list. A list of cookies will be sent along with response.

Implementation

void removeCookie(Cookie cookie) {
  cookie.expires = DateTime(1970);
  final cookies = context[_cookiesKey] as List<Cookie>;
  cookies.add(cookie);
}