setCookies abstract method
Sets the provided cookies.
Parameters:
cookies
: The list of Cookie objects to be set.deleteAll
: A boolean indicating whether to delete all existing cookies before setting the new ones. Defaults tofalse
.
Returns:
- A Future that completes when the cookies have been set.
Implementation
Future<void> setCookies(
List<Cookie> cookies, {
bool deleteAll = false,
});