MutationEvent class

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

Note: Mutation Events (W3C DOM Level 3 Events) have been deprecated in favor of Mutation Observers (W3C DOM4).

The interface provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.

Event

MutationEvent

Implemented types
Available extensions
Annotations
  • @Deprecated('Not official in the specs')
  • @JS()
  • @staticInterop

Constructors

MutationEvent()
factory

Properties

attrChange int

Available on MutationEvent, provided by the PropsMutationEvent extension

no setter
attrName String

Available on MutationEvent, provided by the PropsMutationEvent extension

no setter
bubbles bool

Available on Event, provided by the PropsEvent extension

no setter
cancelable bool

Available on Event, provided by the PropsEvent extension

no setter
cancelBubble bool

Available on Event, provided by the PropsEvent extension

getter/setter pair
composed bool

Available on Event, provided by the PropsEvent extension

no setter
currentTarget EventTarget?

Available on Event, provided by the PropsEvent extension

no setter
defaultPrevented bool

Available on Event, provided by the PropsEvent extension

no setter
eventPhase int

Available on Event, provided by the PropsEvent extension

no setter
hashCode int
The hash code for this object.
no setterinherited
isTrusted bool

Available on Event, provided by the PropsEvent extension

no setter
newValue String

Available on MutationEvent, provided by the PropsMutationEvent extension

no setter
prevValue String

Available on MutationEvent, provided by the PropsMutationEvent extension

no setter
relatedNode Node?

Available on MutationEvent, provided by the PropsMutationEvent extension

no setter
returnValue ↔ dynamic

Available on Event, provided by the PropsEvent extension

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

Available on Event, provided by the PropsEvent extension

no setter
target EventTarget?

Available on Event, provided by the PropsEvent extension

no setter
timeStamp double

Available on Event, provided by the PropsEvent extension

no setter
type String

Available on Event, provided by the PropsEvent extension

no setter

Methods

composedPath() Iterable<EventTarget>

Available on Event, provided by the PropsEvent extension

initEvent(String type, [bool? bubbles = false, bool? cancelable = false]) → void

Available on Event, provided by the PropsEvent extension

initMutationEvent(String typeArg, [bool? bubblesArg = false, bool? cancelableArg = false, Node? relatedNodeArg, String? prevValueArg = '', String? newValueArg = '', String? attrNameArg = '', int? attrChangeArg = 0]) → void

Available on MutationEvent, provided by the PropsMutationEvent extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preventDefault() → void

Available on Event, provided by the PropsEvent extension

stopImmediatePropagation() → void

Available on Event, provided by the PropsEvent extension

stopPropagation() → void

Available on Event, provided by the PropsEvent extension

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

Operators

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

Static Properties

addition int
no setter
modification int
no setter
removal int
no setter