ExtendableEvent class
Extends the lifetime of the install and activate events dispatched on the ServiceWorkerGlobalScope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched to the ServiceWorker until it upgrades database schemas, deletes outdated cache entries, etc.
- Implemented types
- Implementers
Properties
- bubbles → bool?
-
no setteroverride
- cancelable → bool?
-
no setteroverride
- composed → bool?
-
no setteroverride
- currentTarget → EventTarget?
-
no setteroverride
- defaultPrevented → bool
-
no setteroverride
- eventPhase → int
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTrusted → bool?
-
no setteroverride
- matchingTarget → Element
-
A pointer to the element whose CSS selector matched within which an event
was fired. If this Event was not associated with any Event delegation,
accessing this value will throw an UnsupportedError.
no setteroverride
-
path
→ List<
EventTarget> -
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target → EventTarget?
-
no setteroverride
- timeStamp → double?
-
no setteroverride
- type → String
-
no setteroverride
Methods
-
composedPath(
) → List< EventTarget> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preventDefault(
) → void -
override
-
stopImmediatePropagation(
) → void -
override
-
stopPropagation(
) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
waitUntil(
Future future) → void - Extends the lifetime of the event. It is intended to be called in the install EventHandler for the installing worker and on the active EventHandler for the active worker.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited