MutationObserver class

The interface provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature, which was part of the DOM3 Events specification.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

MutationObserver(MutationCallback callback)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disconnect() → void

Available on MutationObserver, provided by the PropsMutationObserver extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe(Node target, [MutationObserverInit? options]) → void

Available on MutationObserver, provided by the PropsMutationObserver extension

takeRecords() Iterable<MutationRecord>

Available on MutationObserver, provided by the PropsMutationObserver extension

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

Operators

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