cookie method
Sets a cookie (convenience method).
Implementation
Response cookie(
String name,
String value, {
String? domain,
String? path = '/',
DateTime? expires,
Duration? maxAge,
bool httpOnly = false,
bool secure = false,
String? sameSite,
}) {
_cookies.set(
name,
value,
domain: domain,
path: path,
expires: expires,
maxAge: maxAge,
httpOnly: httpOnly,
secure: secure,
sameSite: sameSite,
);
return this;
}