setAll method
void
setAll(})
Sets multiple cookies at once.
Implementation
void setAll(
Map<String, String> cookies, {
String? domain,
String? path = '/',
DateTime? expires,
Duration? maxAge,
bool httpOnly = false,
bool secure = false,
String? sameSite,
}) {
for (final entry in cookies.entries) {
set(
entry.key,
entry.value,
domain: domain,
path: path,
expires: expires,
maxAge: maxAge,
httpOnly: httpOnly,
secure: secure,
sameSite: sameSite,
);
}
}