MessageEvent constructor

MessageEvent(
  1. String type, [
  2. MessageEventInit? eventInitDict
])

Implementation

factory MessageEvent(String type, [MessageEventInit? eventInitDict]) =>
    MessageEvent._(type, eventInitDict ?? undefined);