initMessageEvent method

void initMessageEvent(
  1. String type, [
  2. bool? bubbles = false,
  3. bool? cancelable = false,
  4. dynamic data,
  5. String? origin = '',
  6. String? lastEventId = '',
  7. dynamic source,
  8. Iterable<MessagePort>? ports = const [],
])

Implementation

void initMessageEvent(String type,
        [bool? bubbles = false,
        bool? cancelable = false,
        dynamic data,
        String? origin = '',
        String? lastEventId = '',
        dynamic source,
        Iterable<MessagePort>? ports = const []]) =>
    js_util.callMethod(this, 'initMessageEvent', [
      type,
      bubbles,
      cancelable,
      data,
      origin,
      lastEventId,
      source,
      ports
    ]);