initMutationEvent method

void initMutationEvent(
  1. String typeArg, [
  2. bool bubblesArg,
  3. bool cancelableArg,
  4. Node? relatedNodeArg,
  5. String prevValueArg,
  6. String newValueArg,
  7. String attrNameArg,
  8. int attrChangeArg,
])

The initMutationEvent() method of the MutationEvent interface initializes the value of a mutation event once it's been created (normally using the Document.createEvent method).

This method must be called to set the event before it is dispatched, using EventTarget.dispatchEvent.

Note: In general, you won't create these events yourself; they are created by the browser.

Implementation

external void initMutationEvent(
  String typeArg, [
  bool bubblesArg,
  bool cancelableArg,
  Node? relatedNodeArg,
  String prevValueArg,
  String newValueArg,
  String attrNameArg,
  int attrChangeArg,
]);