MutationObserver class

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.

MDN Reference

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

MutationObserver(MutationCallback callback)
factory

Properties

disconnect ↔ void Function()

Available on MutationObserver, provided by the MutationObserver$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
observe ↔ void Function(Node, [MutationObserverInit?])

Available on MutationObserver, provided by the MutationObserver$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
takeRecords List<MutationRecord> Function()

Available on MutationObserver, provided by the MutationObserver$Typings extension

getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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