CookieStore class

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. The interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker. The is accessed via attributes in the global scope in a Window or ServiceWorkerGlobalScope context. Therefore there is no constructor.

EventTarget

CookieStore

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

CookieStore()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onchange EventHandlerNonNull<Event>?

Available on CookieStore, provided by the PropsCookieStore extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

delete(String name) Future<void>

Available on CookieStore, provided by the PropsCookieStore extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

get(String name) Future<CookieListItem>

Available on CookieStore, provided by the PropsCookieStore extension

getAll(String name) Future<Iterable<CookieListItem>>

Available on CookieStore, provided by the PropsCookieStore extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

set([String? name, String? value]) Future<void>

Available on CookieStore, provided by the PropsCookieStore extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited