Cookie constructor

const Cookie(
  1. String name,
  2. String value, {
  3. DateTime? expires,
  4. int? maxAge,
  5. String? domain,
  6. String? path,
  7. bool secure = false,
  8. bool httpOnly = false,
  9. SameSite? sameSite,
})

Creates a new Cookie.

Implementation

const Cookie(
  this.name,
  this.value, {
  this.expires,
  this.maxAge,
  this.domain,
  this.path,
  this.secure = false,
  this.httpOnly = false,
  this.sameSite,
});