CookieInit constructor

CookieInit({
  1. required String name,
  2. required String value,
  3. int? expires,
  4. String? domain,
  5. String? path,
  6. CookieSameSite? sameSite,
})

Implementation

factory CookieInit(
        {required String name,
        required String value,
        int? expires,
        String? domain,
        String? path,
        CookieSameSite? sameSite}) =>
    CookieInit._(
        name: name,
        value: value,
        expires: expires ?? undefined,
        domain: domain ?? undefined,
        path: path ?? '/',
        sameSite: sameSite?.value ?? CookieSameSite.strict.value);