initUIEvent method

void initUIEvent(
  1. String typeArg, [
  2. bool bubblesArg,
  3. bool cancelableArg,
  4. Window? viewArg,
  5. int detailArg,
])

The UIEvent.initUIEvent() method initializes a UI event once it's been created.

Events initialized in this way must have been created with the Document.createEvent method. This method must be called to set the event before it is dispatched, using EventTarget.dispatchEvent. Once dispatched, it doesn't do anything anymore.

Warning: Do not use this method anymore as it is deprecated.

Instead use specific event constructors, like UIEvent.UIEvent. The page on Creating and triggering events gives more information about the way to use these.

Implementation

external void initUIEvent(
  String typeArg, [
  bool bubblesArg,
  bool cancelableArg,
  Window? viewArg,
  int detailArg,
]);