initCompositionEvent method

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

The initCompositionEvent() method of the CompositionEvent interface initializes the attributes of a CompositionEvent object instance.

Note: The correct way of creating a CompositionEvent is to use the constructor CompositionEvent.CompositionEvent.

Implementation

external void initCompositionEvent(
  String typeArg, [
  bool bubblesArg,
  bool cancelableArg,
  Window? viewArg,
  String dataArg,
]);