addCookie method

void addCookie(
  1. Cookie cookie
)

Add cookies to the list of cookies. A list of cookies will be sent along with response.

Implementation

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