addCookie abstract method

Future<void> addCookie({
  1. required String name,
  2. required String value,
  3. String? url,
  4. String? domain,
  5. String? path,
  6. int? expires,
  7. bool? httpOnly,
  8. bool? secure,
  9. String? sameSite,
})

Adds a cookie.

Implementation

Future<void> addCookie({
  required String name,
  required String value,
  String? url,
  String? domain,
  String? path,
  int? expires,
  bool? httpOnly,
  bool? secure,
  String? sameSite,
});