setCookies abstract method

Future<void> setCookies(
  1. List<Cookie> cookies, {
  2. bool deleteAll = false,
})

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 to false.

Returns:

  • A Future that completes when the cookies have been set.

Implementation

Future<void> setCookies(
  List<Cookie> cookies, {
  bool deleteAll = false,
});