CookieRestoreEntry constructor

const CookieRestoreEntry({
  1. required String name,
  2. required String value,
  3. required String domain,
  4. String path = '/',
  5. DateTime? expires,
  6. bool secure = false,
  7. bool httpOnly = false,
  8. String? sameSite,
  9. bool hostOnly = false,
  10. DateTime? createdAt,
})

構造化データから Cookie 復元エントリを生成します。

name は Cookie 名です。 value は Cookie 値です。 domain は対象ドメインです。 path は対象パスです。 expires は有効期限です。 secure は Secure 属性の有無です。 httpOnly は HttpOnly 属性の有無です。 sameSite は SameSite 属性です。 hostOnly はホスト限定 Cookie かどうかです。 createdAt は Cookie の作成日時です。省略時は復元時刻が使用されます。

Implementation

const CookieRestoreEntry({
  required this.name,
  required this.value,
  required this.domain,
  this.path = '/',
  this.expires,
  this.secure = false,
  this.httpOnly = false,
  this.sameSite,
  this.hostOnly = false,
  this.createdAt,
});